diff options
author | Kelley Spoon <kelley.spoon@linaro.org> | 2022-03-10 12:51:06 -0600 |
---|---|---|
committer | Kelley Spoon <kelley.spoon@linaro.org> | 2022-03-11 20:52:24 +0000 |
commit | 7f962b7e289f0908d1eddcc17411d459c4e853cb (patch) | |
tree | eca16c6d23c02304202fd251e25453f76d07fb41 | |
parent | 9e05dcd7cf021f9640c1d156f3626dd6516a3a48 (diff) | |
download | linaro-license-protection-master.tar.gz |
Since the login page is using the view created
by django.contrib.auth, we need to ensure that
the "site_name" context variable is set.
Change-Id: I5e5160ffd54383718b9942d06871611cb038e818
Signed-off-by: Kelley Spoon <kelley.spoon@linaro.org>
Reviewed-on: https://review.linaro.org/c/infrastructure/linaro-license-protection/+/40739
-rw-r--r-- | urls.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -71,8 +71,10 @@ urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^login/$', - auth_views.login, - {'template_name': 'login.html'}, + auth_views.LoginView.as_view( + template_name='login.html', + extra_context={'site_name': settings.SITE_NAME}, + ), name='login'), url(r'^logout/?$', |