Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/sorted section list 467 #789

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/members/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ class CustomUserEditForm(UserEditForm):
)
section = forms.ModelChoiceField(
required=False,
queryset=Section.objects,
queryset=Section.objects.order_by('abbreviation'),
label=_('Section'),
)
status = forms.ChoiceField(
Expand Down Expand Up @@ -412,7 +412,7 @@ class CustomUserCreationForm(UserCreationForm):
)
section = forms.ModelChoiceField(
required=False,
queryset=Section.objects,
queryset=Section.objects.order_by('abbreviation'),
label=_("Section"),
)

Expand Down
4 changes: 2 additions & 2 deletions src/members/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from django.views.generic import CreateView

from members import views
from members.forms import RegistrationForm
from members.forms import CustomUserCreationForm

urlpatterns = [
re_path(r'^profile/$', views.ProfileView.as_view(), name='profile'),
Expand All @@ -14,7 +14,7 @@
),
re_path('^register/', CreateView.as_view(
template_name='members/register.html',
form_class=RegistrationForm,
form_class=CustomUserCreationForm,
success_url=reverse_lazy('login'),
), name='register'),

Expand Down
Loading