user fullname prefixed by account number on login choices page (#6634)
Accounts ordered by join date in order to have coherent indexes
This commit is contained in:
parent
1051624fd7
commit
433737b162
|
@ -71,7 +71,7 @@ class RegistrationCompletionView(FormView):
|
|||
except User.DoesNotExist:
|
||||
pass
|
||||
|
||||
user_accounts = User.objects.filter(email__iexact=kwargs['email'])
|
||||
user_accounts = User.objects.filter(email__iexact=kwargs['email']).order_by('date_joined')
|
||||
if user_accounts:
|
||||
logout(request)
|
||||
context = kwargs.copy()
|
||||
|
|
|
@ -24,7 +24,11 @@ Please choose the account you want to log in with:
|
|||
|
||||
<ul>
|
||||
{% for account in accounts %}
|
||||
<li><a href="{% url "registration_activate" registration_token %}?uid={{ account.username|urlencode }}">{{ account.get_full_name }}</a>
|
||||
<li><a href="{% url "registration_activate" registration_token %}?uid={{ account.username|urlencode }}">
|
||||
{% blocktrans with fullname=account.get_full_name c=forloop.counter %}
|
||||
Account nr. {{ c }} : {{ fullname }}
|
||||
{% endblocktrans %}
|
||||
</a>
|
||||
<div>
|
||||
{% blocktrans with creation_date=account.date_joined|date:'SHORT_DATETIME_FORMAT'%}
|
||||
created on {{ creation_date }}
|
||||
|
|
Loading…
Reference in New Issue