Changes between Version 1 and Version 2 of Ticket #36888, comment 11
- Timestamp:
- May 29, 2026, 3:52:29 PM (5 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36888, comment 11
v1 v2 6 6 }}} 7 7 8 Attempts in the PRs to delegate to `asave()` and push that `sync_to_async()` boundary into `asave()` stalled on the fact that `GenericForeignKeyDescriptor.__set__` accesses the database (see `generic_relations.tests.GenericRelationsTests.test_aadd`). The PRs added another call to `sync_to_async`, which isn't pointing in the right directi n, as pointed out in the reviews. (edits: precision)8 Attempts in the PRs to delegate to `asave()` and push that `sync_to_async()` boundary into `asave()` stalled on the fact that `GenericForeignKeyDescriptor.__set__` accesses the database (see `generic_relations.tests.GenericRelationsTests.test_aadd`). The PRs added another call to `sync_to_async`, which isn't pointing in the right direction, as pointed out in the reviews. (edits: precision) 9 9 10 10 I [https://github.com/django/django/pull/20602#pullrequestreview-4391796527 posted] a sketch of an async interface for Model instantiation.