Remove manually managed from admin

This commit is contained in:
cuom1999 2022-06-13 11:35:24 +07:00
parent e07fdc318f
commit a1fd7caee4

View file

@ -185,7 +185,6 @@ class ProblemAdmin(CompareVersionAdmin):
"code", "code",
"name", "name",
"is_public", "is_public",
"is_manually_managed",
"date", "date",
"authors", "authors",
"curators", "curators",
@ -253,8 +252,6 @@ class ProblemAdmin(CompareVersionAdmin):
fields = self.readonly_fields fields = self.readonly_fields
if not request.user.has_perm("judge.change_public_visibility"): if not request.user.has_perm("judge.change_public_visibility"):
fields += ("is_public",) fields += ("is_public",)
if not request.user.has_perm("judge.change_manually_managed"):
fields += ("is_manually_managed",)
return fields return fields
def show_authors(self, obj): def show_authors(self, obj):