Reputation: 16367
I have some new groups that I'd like to add to Django's "auth_group" table and I'd prefer to use South to "migrate" that data into the database. Unfortunately, I'm not sure what steps I should take to create the migration file and then have it load my fixture.
Any thoughts?
Upvotes: 4
Views: 1672
Reputation: 375992
The South docs have a section about fixtures that includes this sample:
def forwards(self, orm):
from django.core.management import call_command
call_command("loaddata", "my_fixture.json")
Upvotes: 8