Commits

Matthew Schinckel committed a1f3ae4

Allow sorting by provinces field

  • Participants
  • Parent commits 8c63a44

Comments (0)

Files changed (1)

File public_holidays/admin.py

     if not obj.provinces:
         return ""
     return ", ".join(obj.provinces)
-    
+provinces.short_description = 'States/Provinces'
+provinces.admin_order_field = 'provinces'
+
 class PublicHolidayAdmin(admin.ModelAdmin):
     form = PublicHolidayAdminForm
     date_hierarchy = 'date'