Changes between Initial Version and Version 1 of Ticket #37027, comment 4
- Timestamp:
- Apr 14, 2026, 11:53:58 AM (2 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #37027, comment 4
initial v1 10 10 - Thank you @Jacob for the workaround. I am not entirely sure to understand why using `_avoid_cloning()` make it works. I feel if it works with `_avoid_cloning()`, it could just work with the clone API ? 11 11 12 Another suggestion would be to have something simpler `refresh_from_db(select_related=True, prefetch_related=True)` (or another method name like `deep_refresh_from_db()`), that just refresh all relations that the initial object had. But I am not sure if it still has a reference to the initial queryset .12 Another suggestion would be to have something simpler `refresh_from_db(select_related=True, prefetch_related=True)` (or another method name like `deep_refresh_from_db()`), that just refresh all relations that the initial object had. But I am not sure if it still has a reference to the initial queryset, to autonomously re-execute the query.