We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Alter field format_type on film
Running python manage.py makemigrations doesn't (unnecessarily) include alterations to the format type of the Film model
python manage.py makemigrations
Film
Without making any changes to the code, run python manage.py makemigrations and check the Film model is not altered
No response
I think the format type always changes because FORMAT_CHOICES is a set:
FORMAT_CHOICES
museum_of_dreams/mod_app/models/film_model.py
Lines 72 to 84 in 90db50e
The text was updated successfully, but these errors were encountered:
p-j-smith
Successfully merging a pull request may close this issue.
Definition of Done / Acceptance Criteria
Running
python manage.py makemigrations
doesn't (unnecessarily) include alterations to the format type of theFilm
modelTesting
Without making any changes to the code, run
python manage.py makemigrations
and check theFilm
model is not alteredDocumentation
No response
Dependencies
No response
Comments
I think the format type always changes because
FORMAT_CHOICES
is a set:museum_of_dreams/mod_app/models/film_model.py
Lines 72 to 84 in 90db50e
This means the order of the tuples is not guaranteed. Changing
FORMAT_CHOICES
to a list should resolve the issueThe text was updated successfully, but these errors were encountered: