Hello, I have multiple databases, so in my queries I must exploit the `using` keyword (even if here I consider only **one** of them). Now in `MY_DB`, I want to create a `User` that has a reference to a `People` entry - a different table in the **same** database. I do
person = People(firstname=firstname, lastname=lastname) person.save(using=MY_DB) newuser = User(username=username, person=person) newuser.save(using=MY_DB) But although I explicitly saved `person`, it tells me Cannot assign "<People: People object>": "People" instance isn't saved in the database. because, I believe, it looks into the 'default' database for the `person` I saved, and does not find it. How can I specify that the foreign key relationship concerns `MY_DB` ? I also posted my question there but without success yet : http://stackoverflow.com/questions/33667668/django-cannot-assign-object-instance-isnt-saved-in-the-wrong-database -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c4d78478-20bb-443b-87b2-53b605ef8b51%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.