Skip to content
Snippets Groups Projects

Resolve "Login page links do not work"

Merged Piotr Gawron requested to merge 368-login-page-links-do-not-work into master
4 files
+ 12
5
Compare changes
  • Side-by-side
  • Inline
Files
4
from web.models import ConfigurationItem
from web.models.constants import LOGIN_PAGE_BACKGROUND_IMAGE
from web.models.constants import LOGIN_PAGE_BACKGROUND_IMAGE, DEFAULT_FROM_EMAIL
# noinspection PyUnusedLocal
@@ -8,5 +8,6 @@ def login_background(request):
Context processor - these values will be available to templates once registered in settings.py
"""
return {
'login_page_background': ConfigurationItem.objects.get(type=LOGIN_PAGE_BACKGROUND_IMAGE).value
'login_page_background': ConfigurationItem.objects.get(type=LOGIN_PAGE_BACKGROUND_IMAGE).value,
'email': ConfigurationItem.objects.get(type=DEFAULT_FROM_EMAIL).value
}
Loading