Skip to content
Snippets Groups Projects
Verified Commit 7233f1b2 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix typo

parent 6c064bf8
No related branches found
No related tags found
1 merge request!601Resolve "favicon / icon generation mauls database"
Pipeline #10674 failed
......@@ -272,7 +272,7 @@ def monkey_patch() -> None: # noqa
from django.utils.functional import Promise
class DjangoJSONEncoder(json.DjangoJSONEncoder):
def default(self, o: Any) -> Any:
if isinstance(o, Promise) and hasattr(o, copy):
if isinstance(o, Promise) and hasattr(o, "copy"):
return super().default(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