Commit fc007a25562be7ebafb43954463f3fa217b8fe3b
1 parent
fbb767e8
Exists in
master
and in
5 other branches
Change way to add message in index template #14
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
core/views.py
... | ... | @@ -80,7 +80,7 @@ def login(request): |
80 | 80 | login_user(request, user) |
81 | 81 | return redirect(reverse("app:index")) |
82 | 82 | else: |
83 | - context["message"] = _("E-mail or password are incorrect!") | |
83 | + messages.add_message(request, messages.ERROR, _('E-mail or password are incorrect.')) | |
84 | 84 | context["username"] = username |
85 | 85 | elif request.user.is_authenticated: |
86 | 86 | return redirect(reverse('app:index')) | ... | ... |