Fix manage problem & update impersonate

This commit is contained in:
cuom1999 2024-01-09 13:13:08 -06:00
parent 2b84d62260
commit 999e0dcb15
2 changed files with 6 additions and 3 deletions

View file

@ -278,8 +278,11 @@ LANGUAGE_COOKIE_AGE = 8640000
FORM_RENDERER = "django.forms.renderers.TemplatesSetting" FORM_RENDERER = "django.forms.renderers.TemplatesSetting"
IMPERSONATE_REQUIRE_SUPERUSER = True IMPERSONATE = {
IMPERSONATE_DISABLE_LOGGING = True "REQUIRE_SUPERUSER": True,
"DISABLE_LOGGING": True,
"ADMIN_DELETE_PERMISSION": True,
}
ACCOUNT_ACTIVATION_DAYS = 7 ACCOUNT_ACTIVATION_DAYS = 7

View file

@ -106,7 +106,7 @@ class BaseActionSubmissionsView(
try: try:
languages = list(map(int, self.request.POST.getlist("language"))) languages = list(map(int, self.request.POST.getlist("language")))
results = list(map(int, self.request.POST.getlist("result"))) results = list(map(str, self.request.POST.getlist("result")))
contests = list(map(int, self.request.POST.getlist("contest"))) contests = list(map(int, self.request.POST.getlist("contest")))
except ValueError: except ValueError:
return HttpResponseBadRequest() return HttpResponseBadRequest()