On Mon, Mar 7, 2011 at 11:08 AM, Gergely <[email protected]> wrote:
> And if you change the order?
> If the foreign key references a model defined later?
>
> Gergely
>

Do you mean:

  class Episode(models.Model):
    series = models.ForeignKey('Series')

  class Series(models.Model):
    pass


instead of:

  class Series(models.Model):
    pass

  class Episode(models.Model):
    series = models.ForeignKey(Series)

?

If so, then there is no difference in the SQL generated - why would there be?

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to