Skip to content

Commit 39329f9

Browse files
committed
Disallow breaking the catalog through the admin interface
1 parent 40dd87b commit 39329f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

projects/admin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ def explicit_users(self, obj):
2323
class CatalogAdmin(admin.ModelAdmin):
2424
list_display = ["project", "language_code", "domain"]
2525
list_filter = ["project"]
26+
readonly_fields = ["pofile"]

0 commit comments

Comments
 (0)