From 3cf45f5ed3abaf56d1a1f86771a4ea2b624f8ed0 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 8 May 2018 23:09:52 +1000 Subject: [PATCH] Added Login and Logout buttons to NavBar --- InvenTree/InvenTree/urls.py | 2 +- InvenTree/templates/navbar.html | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/InvenTree/InvenTree/urls.py b/InvenTree/InvenTree/urls.py index 1c0cc7cefe..ca4afc4e55 100644 --- a/InvenTree/InvenTree/urls.py +++ b/InvenTree/InvenTree/urls.py @@ -47,7 +47,7 @@ urlpatterns = [ url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')), url(r'^login/', auth_views.login, name='login'), - url(r'^logout/', auth_views.logout, name='logout'), + url(r'^logout/', auth_views.logout, {'template_name': 'registration/logout.html'}, name='logout'), url(r'^admin/', admin.site.urls), url(r'^api/', include(apipatterns)), diff --git a/InvenTree/templates/navbar.html b/InvenTree/templates/navbar.html index 449eb20533..5f6c1f750b 100644 --- a/InvenTree/templates/navbar.html +++ b/InvenTree/templates/navbar.html @@ -11,5 +11,17 @@
  • Build
  • Companies
  • + \ No newline at end of file