Django 1.11.4 版本发行说明
2017 年 8 月 1 日
Django 1.11.4 修复了 1.11.3 中的几个漏洞。
漏洞修复
- Fixed a regression in 1.11.3 on Python 2 where non-ASCII
formatvalues for date/time widgets results in an emptyvaluein the widget's HTML (#28355). - Fixed
QuerySet.union()anddifference()when combining with a queryset raisingEmptyResultSet(#28378). - Fixed a regression in pickling of
LazyObjecton Python 2 when the wrapped object doesn't have__reduce__()(#28389). - Fixed crash in
runserver'sautoreloadwith Python 2 on Windows with non-strenvironment variables (#28174). - Corrected
Field.has_changed()to returnFalsefor disabled form fields:BooleanField,MultipleChoiceField,MultiValueField,FileField,ModelChoiceField, andModelMultipleChoiceField. - Fixed
QuerySet.count()forunion(),difference(), andintersection()queries. (#28399). - Fixed
ClearableFileInputrendering as a subwidget ofMultiWidget(#28414). Customclearable_file_input.htmlwidget templates will need to adapt for the fact that context valuescheckbox_name,checkbox_id,is_initial,input_text,initial_text, andclear_checkbox_labelare now attributes ofwidgetrather than appearing in the top-level context. - Fixed queryset crash when using a
GenericRelationto a proxy model (#28418).
讨论区