1
0
mirror of https://github.com/django/django.git synced 2025-03-29 02:30:48 +00:00

Slightly more informative message to user

This commit is contained in:
leunga1000 2022-02-25 20:57:24 +00:00
parent aa8c36118c
commit fcc3f31388

View File

@ -1937,7 +1937,9 @@ class ModelAdmin(BaseModelAdmin):
return SimpleTemplateResponse(
"admin/invalid_setup.html",
{
"title": _("Database error"),
"title": _(
"Database error/IncorrectLookupParameters in query string"
),
},
)
return HttpResponseRedirect(request.path + "?" + ERROR_FLAG + "=1")