Changes between Initial Version and Version 2 of Ticket #36235
- Timestamp:
- Mar 7, 2025, 5:28:29 AM (2 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36235 – Description
initial v2 21 21 We'd need to be able to pass this information down to the queryset. It looks like this might already be available in `_known_related_objects` which is set by `RelatedManager._apply_rel_filters()`, so that would be a good starting point for investigation. 22 22 23 We would also need to check whether something needs to be done to select the correct database as `RelatedManager.get_or_create()` has handling for this: 24 25 {{{#!python 26 db = router.db_for_write(self.model, instance=self.instance) 27 }}} 28 23 29 If this is something we can't fix reliably, then we should update the admonition under [https://docs.djangoproject.com/en/stable/ref/models/querysets/#get-or-create .get_or_create()] in the docs and probably update [https://docs.djangoproject.com/en/stable/ref/models/querysets/#update-or-create .update_or_create()] to make this and other issues related to use through `RelatedManager` more clear.