aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/resources/admin.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-08-01 16:18:27 +0100
committerMatthew Lemon <y@yulqen.org>2024-08-01 16:18:27 +0100
commitdc3c5a7ac20ecddfb4d54c65d8b67b8f010caeb1 (patch)
tree9537f152b065dcf26946dc5ddcc85f1e6fc60e98 /pyblackbird_cc/resources/admin.py
parent0b4c36d93a6ac43fe0e90e44549c2de99f3c6cdf (diff)
Ordering the subcategories on the admin page.
Diffstat (limited to '')
-rw-r--r--pyblackbird_cc/resources/admin.py4
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):