Removed the errors_by_field status content from the retrieve_status() template tag, for it no longer exists.

This commit is contained in:
依瑪貓 2020-08-08 01:22:28 +08:00
parent e6675e0e03
commit 610c0f5a00

View File

@ -169,13 +169,6 @@ def retrieve_status_tag(context):
return "" return ""
if "success" in status: if "success" in status:
context.dicts[0]["success"] = status["success"] context.dicts[0]["success"] = status["success"]
if "errors_by_field" in status:
context.dicts[0]["errors"] = status["errors_by_field"]
if "" in status["errors_by_field"]:
if "page_errors" not in context.dicts[0]:
context.dicts[0]["page_errors"] = []
context.dicts[0]["page_errors"].append(
status["errors_by_field"][""])
return "" return ""