I was not sure because of
http://djangoadvent.com/1.2/multiple-database-support/ and esp. this part:
The allow_relation method exists to provide a sanity check. Django doesn't
want to let you assign cross-database relations if it's going to fail.
Therefore when you're trying to create a relationship between two models on
different databases (for either a ForeignKey or ManyToManyField) Django
will call this method so that you can provide the appropriate validation.
Thanks for making it clear :)
Xavier.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment