Skip to content
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

Redefine Multiselect Field after migration #115

Open
dlenskyi opened this issue May 22, 2020 · 0 comments
Open

Redefine Multiselect Field after migration #115

dlenskyi opened this issue May 22, 2020 · 0 comments

Comments

@dlenskyi
Copy link

Hi there! Earlier I used PositiveSmallIntegerField with choices option, so user could choose only one variant among my choices.
Now, I needed to implement multiple choices with that field, so I used this library for doing this.
Everything is working fine, but when I altered my field with MultipleChoiceField, my older records in database with old PositiveSmallIntegerField became empty, I think because nativery MultiSelectField stores values in type of CharField, but PositiveSmallIntegerField stores them as integers. How can I fix that problem and reassign older records in DB for that field to new values (e.g. choices of new MultiSelectField)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant