diff options
Diffstat (limited to 'app/locations/admin.py')
-rw-r--r-- | app/locations/admin.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/locations/admin.py b/app/locations/admin.py index b538657..4adb836 100644 --- a/app/locations/admin.py +++ b/app/locations/admin.py @@ -161,10 +161,11 @@ admin.site.register(State, StateAdmin) class LocationAdmin(OSMGeoAdmin): - list_display = ('name', 'slug', 'state', 'pub_date') + list_display = ('name', 'pub_date', 'parent', 'state', 'slug') prepopulated_fields = {'slug': ('name',)} search_fields = ('name', 'state') - ordering = ('name',) + ordering = ('pub_date', 'name') + list_filter = ('pub_date', 'state__country__lux_region', 'state') save_as = True search_fields = ['name'] list_select_related = True @@ -174,7 +175,8 @@ class LocationAdmin(OSMGeoAdmin): 'name', 'slug', 'pub_date', - 'state' + 'state', + 'parent' ), 'classes': ('show', 'extrapretty') }), |