Say I have a model:
class Note(models.Model) :
text = models.TextField()
owner = models.ForeignKey(User)
If Note and User are located on different databases, would the
following still work?
note = Note(text='hello world', owner=request.user)
I understand that join will not work across databases, but will
creating object instance like above still work?
Thanks.
--
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