From af91e2079b20389c1204a9295ba367f1f4fb1654 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 24 Feb 2020 14:10:51 +0100 Subject: [PATCH] core: sort provider by pk when selection application provider --- passbook/core/forms/applications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passbook/core/forms/applications.py b/passbook/core/forms/applications.py index 8c1a91603..8ea1b9d58 100644 --- a/passbook/core/forms/applications.py +++ b/passbook/core/forms/applications.py @@ -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: