dimanche 24 janvier 2016

Django 1.8 migration did not take affect

Using Django 1.8 with a SQLite database.
I made a change in models.py that consisted of eliminating two out of four elements from a field choice and editing one of the remaining two:

Original value:

OPTION_INSPECTOR = (
    ('John Smith', 'John Smith'),
    ('Taylor', 'Taylor'),
    ('Hale', 'Hale'),
    ('James', 'James'),
)

New value:

OPTION_INSPECTOR = (
    ('John Smith', 'John Smith'),
    ('Greg Taylor', 'Greg Taylor'),
)

I then ran:

python manage.py makemigrations my_app

I saw nothing unusual, only the changes that I made, if I recall correctly. I do not have the actual output.

Then I ran:

python manage.py migrate my_app

Again, I don't remember anything unusual. But, the model hasn't changed the choices within the dropdown menu on the Admin site. Can anyone suggest a way to make this change successfully?

Thanks!

Aucun commentaire:

Enregistrer un commentaire