2017 年 8 月 1 日
Django 1.11.4 修复了 1.11.3 中的几个漏洞。
format
values
for date/time widgets results in an empty value
in the widget's HTML
(#28355).QuerySet.union()
and difference()
when combining with
a queryset raising EmptyResultSet
(#28378).LazyObject
on Python 2 when the wrapped
object doesn't have __reduce__()
(#28389).runserver
's autoreload
with Python 2 on Windows with
non-str
environment variables (#28174).Field.has_changed()
to return False
for disabled form
fields: BooleanField
, MultipleChoiceField
, MultiValueField
,
FileField
, ModelChoiceField
, and ModelMultipleChoiceField
.QuerySet.count()
for union()
, difference()
, and
intersection()
queries. (#28399).ClearableFileInput
rendering as a subwidget of MultiWidget
(#28414). Custom clearable_file_input.html
widget templates
will need to adapt for the fact that context values
checkbox_name
, checkbox_id
, is_initial
, input_text
,
initial_text
, and clear_checkbox_label
are now attributes of
widget
rather than appearing in the top-level context.GenericRelation
to a proxy model
(#28418).12月 05, 2023