代码拉取完成,页面将自动刷新
AlterSortedManyToManyField
operation to support custom set
_sort_field_name
.ManyToManyField
instead of SortedManyToManyField
from sortedm2m
.
Thanks Dayne May for the patch.SortedMultipleChoiceField.clean
if the validated
value is None
. Thanks to Alex Mannhold for the patch.#79: Use .sortedm2m-item selector in the widget's JavaScript code to target the list items. This was previously ul.sortedm2m li. This improves compatibility other markup that does not want to use ul/li tags. Thanks to Michal Dabski for the patch.
Note: If you use custom markup with the JavaScript code, you need to make sure that the items now have the sortedm2m-item class name.
#76: Add support for to_field_name to SortedMultipleChoiceField. Thanks to Conrad Kramer for the patch.
SortedCheckboxSelectMultiple
. Thanks to Kirill Ermolov for the
patch.allow_migrate_model
method).
Thanks to @hstanev for the patch.count
of the m2m objects for the next sort_value
value. We now use the corret Max
aggregation to make sure that newly
added objects will be in order. Thanks to Scott Kyle for the report and
patch.AlterSortedManyToManyField
operation. Thanks to
Nicolas Trésegnie for starting the implementation.SortedManyToManyField
class. That makes it much
easier to modify the creation of this when creating a custom subclass of this
field. See #49 for an example usecase.sorted
and
sort_value_field_name
in Django 1.7 migrations. Thanks to Christian
Kohlstedde for the patch.setup.py
when run on a system that does not use UTF-8 as default
encoding. See #48 for details. Thanks to Richard Mitchell for the patch.SortedMultipleChoiceField
did not properly report changes of the
data to Form.changed_data
. Thanks to @smcoll for the patch.AlterSortedManyToManyField
operation failed for postgres databases.AlterSortedManyToManyField
operation failed for many to many fields
which already contained some data.AlterSortedManyToManyField
migration operation that allows you to
migrate from ManyToManyField
to SortedManyToManyField
and vice
versa. Thanks to Joaquín Pérez for the patch!prefetch_related()
. Thanks to Marcin Ossowski for
the idea and patch.sort_value_field_name
argument in
SortedManyToManyField
. Thanks to Trey Hunner for the idea.sorted
argument though.SortedManyToManyField
and a reference to 'self'
.SortedCheckboxSelectMultiple
widget, especially in
admin where a "create and add another item" popup is available..add()
and
.remove()
methods in SortedRelatedManager
.SortedCheckboxSelectMultiple
. It caused
errors if only one value was passed.SortedCheckboxSelectMultiple
. Thanks to Klaas van Schelven and Yuwei Yu
for the hint.此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。