Commits

Brad Montgomery  committed 822d0d4

adding order to the list of ContentTypes

  • Participants
  • Parent commits dc99a68

Comments (0)

Files changed (1)

File janitor/forms.py

         return "%s/%s" % (obj.app_label, obj.name)
 
 class FieldSanitizerAdminForm(ModelForm):
-    content_type = ContentTypeChoiceFieldWithAppLabel(ContentType.objects.all())
+    content_type = ContentTypeChoiceFieldWithAppLabel(ContentType.objects.all().order_by('app_label', 'model'))
     class Meta:
         model = FieldSanitizer