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

View file

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