Fix manage problem & update impersonate
This commit is contained in:
parent
2b84d62260
commit
999e0dcb15
2 changed files with 6 additions and 3 deletions
|
@ -278,8 +278,11 @@ LANGUAGE_COOKIE_AGE = 8640000
|
|||
|
||||
FORM_RENDERER = "django.forms.renderers.TemplatesSetting"
|
||||
|
||||
IMPERSONATE_REQUIRE_SUPERUSER = True
|
||||
IMPERSONATE_DISABLE_LOGGING = True
|
||||
IMPERSONATE = {
|
||||
"REQUIRE_SUPERUSER": True,
|
||||
"DISABLE_LOGGING": True,
|
||||
"ADMIN_DELETE_PERMISSION": True,
|
||||
}
|
||||
|
||||
ACCOUNT_ACTIVATION_DAYS = 7
|
||||
|
||||
|
|
|
@ -106,7 +106,7 @@ class BaseActionSubmissionsView(
|
|||
|
||||
try:
|
||||
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")))
|
||||
except ValueError:
|
||||
return HttpResponseBadRequest()
|
||||
|
|
Loading…
Reference in a new issue