From da7d02e26ed61a74643e9dd7c20c8f68a83bd2e0 Mon Sep 17 00:00:00 2001 From: Gena Date: Thu, 4 Jun 2015 12:49:01 +0600 Subject: [PATCH] no message --- store/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/store/admin.py b/store/admin.py index 29616aa..6a93bd1 100644 --- a/store/admin.py +++ b/store/admin.py @@ -29,6 +29,7 @@ class CategoryAdmin(admin.ModelAdmin): return object.__str__() get_str.short_description = 'Полный путь' + get_str.admin_order_field = 'title' list_display = ('title', get_str,) prepopulated_fields = {"slug": ("title",)}