#36194: add async support to ManyToManyField
-----------------------------+--------------------------------------
     Reporter:  amirreza     |                    Owner:  amirreza
         Type:  New feature  |                   Status:  assigned
    Component:  Forms        |                  Version:  5.1
     Severity:  Normal       |               Resolution:
     Keywords:               |             Triage Stage:  Unreviewed
    Has patch:  0            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  1            |                    UI/UX:  0
-----------------------------+--------------------------------------
Description changed by amirreza:

Old description:

> hi
> i'm working on an async version of `ModelForm` on a third party package
> a problem that occurs is the lack of async support in mant to many fields
> 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
> 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
>
> so i think adding an async version is a feasible option, ofc this means
> adding async version of other methods of ManyToManyField that need one
> so i'm volunteering for this

New description:

 hi
 i'm working on an async version of `ModelForm` on a third party package
 a problem that occurs is the lack of async support in mant to many fields
 in 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
 even 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

 so i think adding an async version is a feasible option, ofc this means
 adding async version of other methods of ManyToManyField that need one
 so i'm volunteering for this

--
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36194#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070195108273f6-2dcc90df-4211-441b-9e22-a8d76acb5246-000000%40eu-central-1.amazonses.com.

Reply via email to