File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 6
6
{% block content %}
7
7
< h1 > Continue as Guest</ h1 >
8
8
< p >
9
+ {% url 'account_login' as login_url %}
10
+ {% url 'account_signup' as signup_url %}
11
+ {% with next_param=request.GET.next %}
12
+ {% with login_url=login_url|add:"?next="|add:next_param %}
13
+ {% with signup_url=signup_url|add:"?next="|add:next_param %}
9
14
{% blocktranslate %}Already have an account? Then please
10
15
< a href ="{{ login_url }} "> login</ a > .{% endblocktranslate %}
11
16
{% blocktranslate %}You want to create a user account? Then please
12
- < a href ="{{ login_url }} "> create account</ a > .{% endblocktranslate %}
17
+ < a href ="{{ signup_url }} "> create account</ a > .{% endblocktranslate %}
18
+ {% endwith %}
19
+ {% endwith %}
20
+ {% endwith %}
13
21
</ p >
14
22
< form id ="signup_form " method ="post " action ="">
15
23
{{ form.non_field_errors }}
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ def get_context_data(self, **kwargs):
32
32
print (context )
33
33
print (self .request .GET .get ("next" , "" ))
34
34
context ["next" ] = self .request .GET .get ("next" , "" )
35
+ # context["login_url"] = account_urls.login_url
35
36
return context
36
37
37
38
def get_initial (self ):
You can’t perform that action at this time.
0 commit comments