Skip to content
Snippets Groups Projects
Commit 06d973bf authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge branch '356-favicon-icon-generation-mauls-database' of...

Merge branch '356-favicon-icon-generation-mauls-database' of edugit.org:AlekSIS/official/AlekSIS-Core into 356-favicon-icon-generation-mauls-database
parents be098d0f d58a3f7f
No related branches found
No related tags found
1 merge request!601Resolve "favicon / icon generation mauls database"
Pipeline #10701 failed
......@@ -281,6 +281,6 @@ def monkey_patch() -> None: # noqa
class DjangoJSONEncoder(json.DjangoJSONEncoder):
def default(self, o: Any) -> Any:
if isinstance(o, Promise) and hasattr(o, "copy"):
return super().default(o.copy())
return super().encode(o.copy())
return super().default(o)
json.DjangoJSONEncoder = DjangoJSONEncoder
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment