You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the makemigrations command if a relativedelta object was provided as default value an error is raised:
File "/opt/venv/lib/python3.9/site-packages/django/db/migrations/serializer.py", line 353, in serializer_factory
raise ValueError(
ValueError: Cannot serialize: relativedelta(days=+1)
There are some values Django cannot serialize into migration files.
For more, see https://docs.djangoproject.com/en/3.2/topics/migrations/#migration-serializing
It would be useful if this app implements a custom serializer to be used in migrations for relative delta objects.
The text was updated successfully, but these errors were encountered:
When running the
makemigrations
command if arelativedelta
object was provided as default value an error is raised:It would be useful if this app implements a custom serializer to be used in migrations for relative delta objects.
The text was updated successfully, but these errors were encountered: