1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-04-25 16:12:37 +00:00

Merge branch 'options_order' into 'main'

Options order

See merge request 
This commit is contained in:
ehouarn 2025-04-13 23:12:05 +02:00
commit 8e2b24b2da
2 changed files with 2 additions and 2 deletions
apps
member
note/templates/note

@ -23,7 +23,7 @@ from .models import Profile, Club, Membership
class CustomAuthenticationForm(AuthenticationForm): class CustomAuthenticationForm(AuthenticationForm):
permission_mask = forms.ModelChoiceField( permission_mask = forms.ModelChoiceField(
label=_("Permission mask"), label=_("Permission mask"),
queryset=PermissionMask.objects.order_by("rank"), queryset=PermissionMask.objects.order_by("-rank"),
empty_label=None, empty_label=None,
) )

@ -89,7 +89,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
</ul> </ul>
<div class="card-body"> <div class="card-body">
<select id="debit_type" class="form-control custom-select d-none"> <select id="debit_type" class="form-control custom-select d-none">
{% for special_type in special_types %} {% for special_type in special_types|slice:"::-1" %}
<option value="{{ special_type.id }}">{{ special_type.special_type }}</option> <option value="{{ special_type.id }}">{{ special_type.special_type }}</option>
{% endfor %} {% endfor %}
</select> </select>