#26999: Request to add changes to ``model_to_dict`` in Django 1.10 to the
release
notes
-------------------------------+--------------------
Reporter: aronysidoro | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.10
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------
It seems that the `django.forms.models.model_to_dict` function changed
with the way that it treats many-to-many related objects. Before, it was
returning them in a list if ID's. Not it's returning them as a queryset.
Commit that caused the change:
https://github.com/django/django/commit/ded502024191053475bac811d365ac29dca1db61
The logic is here in the `model_to_dict` method:
https://github.com/django/django/blob/1.10/django/forms/models.py#L91
And here in the field method:
https://github.com/django/django/blob/1.10/django/db/models/fields/related.py#L1564-L1570
I'd like to request to add this to the release notes for Django 1.10. I
couldn't find any note of it in there. I didn't know about the change,
and it caused some code to break. No big deal, was able to locate the
issue. Just want to point it out in case others may experience it.
Thank you
--
Ticket URL: <https://code.djangoproject.com/ticket/26999>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/054.fa403957437914ac8bf4590d6a320196%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.