From 8d7837b890455c460a96358df5fc21c762eb5712 Mon Sep 17 00:00:00 2001 From: HugoNeveux Date: Wed, 22 Apr 2020 10:42:45 +0200 Subject: [PATCH] Fix user dropdown and add logout view --- PDMI/store/templates/store/store-navbar.html | 7 ++++--- PDMI/store/urls.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/PDMI/store/templates/store/store-navbar.html b/PDMI/store/templates/store/store-navbar.html index d908bca..3eaf248 100644 --- a/PDMI/store/templates/store/store-navbar.html +++ b/PDMI/store/templates/store/store-navbar.html @@ -2,14 +2,15 @@ {% block 'navbar-right' %} {% if user.is_authenticated %} diff --git a/PDMI/store/urls.py b/PDMI/store/urls.py index f531c91..00fdcca 100644 --- a/PDMI/store/urls.py +++ b/PDMI/store/urls.py @@ -22,5 +22,5 @@ urlpatterns = [ path('', TemplateView.as_view(template_name='store/index.html'), name='store_front_page'), path('login/', views.CustomLoginView.as_view(), name='login'), path('signup/', views.SignUpView.as_view(), name='signup'), - path('logout/', LogoutView.as_view()) + path('logout/', LogoutView.as_view(), name='logout') ]