core: sort provider by pk when selection application provider

This commit is contained in:
Jens Langhammer 2020-02-24 14:10:51 +01:00
parent cad1c17f14
commit af91e2079b
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ class ApplicationForm(forms.ModelForm):
"""Application Form""" """Application Form"""
provider = forms.ModelChoiceField( provider = forms.ModelChoiceField(
queryset=Provider.objects.all().select_subclasses(), required=False queryset=Provider.objects.all().order_by('pk').select_subclasses(), required=False
) )
class Meta: class Meta: