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