Changes between Initial Version and Version 1 of Ticket #36194


Ignore:
Timestamp:
Feb 16, 2025, 2:41:30 PM (6 days ago)
Author:
amirreza
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36194 – Description

    initial v1  
    22i'm working on an async version of `ModelForm` on a third party package
    33a problem that occurs is the lack of async support in mant to many fields
    4 in particular, [_save_m2m](https://github.com/django/django/blob/main/django/forms/models.py#L536) calls [save_form_data](https://github.com/django/django/blob/main/django/db/models/fields/related.py#L2010), but there is no async equivalent to this mathod
    5 even tho `save_form_data` is basically calling [ManyRelatedManager.set](https://github.com/django/django/blob/main/django/db/models/fields/related_descriptors.py#L1275) which has an async equivalent
     4in particular, `_save_m2m` [https://github.com/django/django/blob/main/django/forms/models.py#L536] calls `save_form_data` [https://github.com/django/django/blob/main/django/db/models/fields/related.py#L2010], but there is no async equivalent to this mathod
     5even tho `save_form_data` is basically calling `ManyRelatedManager.set` [https://github.com/django/django/blob/main/django/db/models/fields/related_descriptors.py#L1275] which has an async equivalent
    66
    77so i think adding an async version is a feasible option, ofc this means adding async version of other methods of ManyToManyField that need one
Back to Top