Tuesday, July 2, 2013

Passing multiple related fixtures to django management loaddata

Hi there,

I have a south migration where I'm using django.core.management.call_command() to load yaml fixtures for 2 models into Postgres. Currently I have multiple fixtures with circular foreign key relationships and concatenate these to a single fixture. Ideally, for ease of maintenance, I would prefer to load multiple separate fixtures within one transaction, but loaddata only appears to accept one argument. Is this possible?

Many thanks

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment