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
After having added a slug field with max_length = 100 to a model and run manage.py makemigrations, if you open the migration file you can see that max_length is not defined, then the field max_length will be set to 50.
The text was updated successfully, but these errors were encountered:
It hasn't been fixed and I just ran into a Data Error "value too long for type character varying(50)" cause of it.
It would be good to have at least something in the docs about how to work around. I deleted 'max_length', created migrations, added 'max_length' again this time with the new value and created a migration. Migrate and you're good to go.
After having added a slug field with max_length = 100 to a model and run
manage.py makemigrations
, if you open the migration file you can see that max_length is not defined, then the field max_length will be set to 50.The text was updated successfully, but these errors were encountered: