I use Django 1.5b1 and southern migrations, and life in general was great. I have some schema updates that create my database, with a User table among others. Then I load the fixture for ff.User (my user model):
def forwards(self, orm): from django.core.management import call_command fixture_path = "/absolute/path/to/my/fixture/load_initial_users.json" call_command("loaddata", fixture_path)
Everything works fine until I added another field to my ff.User model, much further along the migration line. My binding is now breaking:
DatabaseError: Problem installing fixture 'C:\<redacted>create_users.json': Could not load ff.User(pk=1): (1054, "Unknown column 'timezone_id' in 'field list'")
The time zone is the (ForeignKey) field that I added to my user model.
ff.User is different from what is in the database, so Django ORM refuses DB error. Unfortunately, I cannot specify my model in my device as orm['ff.User'] , which seems to be a southern way of doing things.
How should I correctly load the fixtures with the help of the south, so that they do not break after the models for which these fixtures have been changed have been changed?
source share