Changes between Initial Version and Version 1 of Ticket #17657, comment 12


Ignore:
Timestamp:
Jul 11, 2016, 3:10:42 PM (8 years ago)
Author:
Andrey Fedoseev

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17657, comment 12

    initial v1  
    11Unfortunately, the proposed patch doesn't work anymore. The original idea was to have `model_dict` to return "raw" values provided by `f.value_from_object()` and let the form fields to the rest. Now it's impossible because `ManyToManyField.value_from_object` was changed so that it always returns a list of `pk`s instead of a `QuerySet`. See https://github.com/django/django/commit/67d984413c9540074e4fe6aa033081a35cf192bc
    22
    3 I've created a new pull request GitHub with the following changes:
     3I've created a [https://github.com/django/django/pull/6904 new pull request] GitHub with the following changes:
    44
    551. Revert `ManyToManyField.value_from_obj` back to return a `QuerySet` instead of a list of `pk`s
Back to Top