-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'display_name' and 'name' fields are the same size #117
Comments
Thanks for your feedback !
Could you post the full traceback please ?
|
Here's the full error:
|
Thanks a lot for your feedback ! This is very interresting, note that your example code works fine here:
In your example, Could you please re-explain what the problem exactly is here ? Thanks !! Note that I have nothing against incrementing the size of this column, if we have an actual use case. |
Hello, Sorry for the delay. I have been doing a lot of tests, and I can't reproduce the bug with a fresh install of django (with python 2 or python 3). It seems the bug comes from my code, or a migration I wrote. I'll get back to you when I know more about this. Thank you, |
I ran into this issue while using model-mommy to generate fixtures for unit testing. |
Hello,
Currently, if I try to create a City with a name of 200 characters (the max_length for this field), there is an exception raised on creation (DataError). Example :
It seems to be because
display_name
andname
fields have the same max_length (200), and thedisplay_name
consists of the name + the country name. Is there a way to avoid this problem ?Best regards
The text was updated successfully, but these errors were encountered: