Changes between Version 2 and Version 3 of Ticket #36194


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36194 – Description

    v2 v3  
    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 method
    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, [https://github.com/django/django/blob/main/django/forms/models.py#L536 _save_m2m] calls [https://github.com/django/django/blob/main/django/db/models/fields/related.py#L2010 save_form_data], but there is no async equivalent to this method
     5even tho `save_form_data` is basically calling [https://github.com/django/django/blob/main/django/db/models/fields/related_descriptors.py#L1275 ManyRelatedManage.set()] 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