From dc3c5a7ac20ecddfb4d54c65d8b67b8f010caeb1 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 1 Aug 2024 16:18:27 +0100 Subject: Ordering the subcategories on the admin page. --- pyblackbird_cc/resources/admin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pyblackbird_cc/resources') diff --git a/pyblackbird_cc/resources/admin.py b/pyblackbird_cc/resources/admin.py index b885caf..a9662ee 100644 --- a/pyblackbird_cc/resources/admin.py +++ b/pyblackbird_cc/resources/admin.py @@ -15,9 +15,11 @@ class ResourceTypeAdmin(admin.ModelAdmin): class ResourceCategoryAdmin(admin.ModelAdmin): pass + @admin.register(ResourceSubcategory) class ResourceSubcategoryAdmin(admin.ModelAdmin): - pass + ordering = ['name'] + @admin.register(Resource) class ResourceAdmin(admin.ModelAdmin): -- cgit v1.2.3