> And if you change the order? > If the foreign key references a model defined later? Correct me if I'm wrong, but you can't do that -- python will complain.
I can't find a better reference off the bat than http://docs.djangoproject.com/en/1.2/ref/django-admin/#inspectdb It says that you have to rearrange your model definitions so that they reference existing ones. If you try to reference a model defined later, you'll get errors while importing the models.py file. Michal Petrucha
signature.asc
Description: Digital signature