Hi,
I have initial fixtures (initial_data.json) for several apps.
The model A of App1 references the model B of App2.
I use natural keys to reference it.
So when I sync the DB, Django tries to make a query on modelB.
However, it appears that the fixtures of my App1 are installed before the fixtures of my App2.
It then fails because it cannot get the modelB.
I would like the contrary: to install fixtures from App2 before.
def natural_key(self):
return (self.url,)
natural_key.dependencies = ['app2.modelB']
Any idea?
Thanks