core: sort provider by pk when selection application provider
This commit is contained in:
parent
cad1c17f14
commit
af91e2079b
|
@ -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:
|
||||
|
|
Reference in a new issue