File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
templates/spirit/user/auth Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
3
- from . .conf import settings as st_settings
3
+ from spirit . core .conf import settings as st_settings
4
4
5
5
from .registry import register
6
6
7
7
8
8
@register .simple_tag (takes_context = True )
9
9
def load_settings (context , * settings ):
10
- context [ 'st_settings' ] = {
10
+ context . setdefault ( 'st_settings' , {}). update ( {
11
11
setting : getattr (st_settings , setting )
12
- for setting in settings }
12
+ for setting in settings })
13
13
return ''
Original file line number Diff line number Diff line change 2
2
3
3
{% extends "spirit/_base.html" %}
4
4
5
- {% load i18n %}
5
+ {% load spirit_tags i18n %}
6
+ {% load_settings 'LOGIN_URL' %}
6
7
7
8
{% block title %}{% trans 'Password change successful' %}{% endblock %}
8
9
9
10
{% block content %}
10
11
< div class ="layout__article ">
11
12
< h1 class ="headline "> {% trans 'Password change successful' %}</ h1 >
12
13
13
- < p > < a href ="{% url LOGIN_URL %} "
14
+ < p > < a href ="{% url st_settings. LOGIN_URL %} "
14
15
> {% trans 'Continue to login' %}</ a > </ p >
15
16
</ div >
16
17
{% endblock %}
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ class _CustomPasswordResetConfirmView(django_views.PasswordResetConfirmView):
38
38
39
39
class _CustomPasswordResetCompleteView (django_views .PasswordResetCompleteView ):
40
40
template_name = 'spirit/user/auth/password_reset_complete.html'
41
- extra_context = {'LOGIN_URL' : settings .LOGIN_URL }
42
41
43
42
44
43
class _CustomPasswordResetDoneView (django_views .PasswordResetDoneView ):
You can’t perform that action at this time.
0 commit comments