#32563: Cannot override database used with RelatedManager
-------------------------------------+-------------------------------------
Reporter: Lucas Gruber | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: RelatedManager | Triage Stage:
mullti databases | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* status: new => closed
* resolution: => invalid
Comment:
Lucas, I'm not exactly sure how you would like to use `using` in `set()`.
There is no need to specify a database alias for `set()` because it uses
`db_alias` from the instance. As far as I'm aware that's the only database
that makes sense in this case. Cross-database foreign keys and m2m fields
are not supported in Django, see #12540.
--
Ticket URL: <https://code.djangoproject.com/ticket/32563#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/069.1f089d8d11072f18689220ca04db8bfe%40djangoproject.com.