diff options
author | Matthew Lemon <y@yulqen.org> | 2024-08-01 16:18:27 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-08-01 16:18:27 +0100 |
commit | dc3c5a7ac20ecddfb4d54c65d8b67b8f010caeb1 (patch) | |
tree | 9537f152b065dcf26946dc5ddcc85f1e6fc60e98 /pyblackbird_cc/resources | |
parent | 0b4c36d93a6ac43fe0e90e44549c2de99f3c6cdf (diff) |
Ordering the subcategories on the admin page.
Diffstat (limited to 'pyblackbird_cc/resources')
-rw-r--r-- | pyblackbird_cc/resources/admin.py | 4 |
1 files changed, 3 insertions, 1 deletions
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): |