Skip to content

Commit 89f0ae8

Browse files
committed
Slightly more useful admin panel
1 parent 07a1acd commit 89f0ae8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

projects/admin.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77
@admin.register(models.Project)
88
class ProjectAdmin(admin.ModelAdmin):
99
filter_horizontal = ["users"]
10-
list_display = ["name", "explicit_users"]
10+
list_display = [
11+
"name",
12+
"explicit_users",
13+
"email_domains",
14+
"created_at",
15+
"updated_at",
16+
]
1117
list_filter = ["users"]
1218
prepopulated_fields = {"slug": ["name"]}
1319

@@ -21,6 +27,7 @@ def explicit_users(self, obj):
2127

2228
@admin.register(models.Catalog)
2329
class CatalogAdmin(admin.ModelAdmin):
24-
list_display = ["project", "language_code", "domain"]
30+
list_display = ["project", "language_code", "domain", "created_at", "updated_at"]
2531
list_filter = ["project"]
2632
readonly_fields = ["pofile"]
33+
ordering = ["project", *models.Catalog._meta.ordering]

0 commit comments

Comments
 (0)