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"
|
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
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue