
Linuxeden 开源社区 --
Django 1.11.1 发布了,添加了一个小功能,并修复了 1.11 中的几个错误,具体如下:
- Made migrations respect
Index’snameargument. If you created a named index with Django 1.11,makemigrationswill create a migration to recreate the index with the correct name - Fixed a crash when using a
__icontainslookup on aArrayField - Fixed a crash when using a two-tuple in
EmailMessage’sattachmentsargument - Fixed
QuerySet.filter()crash when it references the name of aOneToOneFieldprimary key - Fixed empty POST data table appearing instead of “No POST data” in HTML debug page
- Restored
BoundFields without anychoicesevaluating toTrue - Prevented
SessionBase.cycle_key()from losing session data if_session_cacheisn’t populated - Fixed layout of
ReadOnlyPasswordHashWidget(used in the admin’s user change page) - Allowed prefetch calls on managers with custom
ModelIterablesubclasses - Fixed change password link in the
contrib.authadmin forel,es_MX, andpttranslations - Restored the output of the
classattribute in the<ul>of widgets that use themultiple_input.htmltemplate. This fixesModelAdmin.radio_fieldswithadmin.HORIZONTAL - Fixed crash in
BaseGeometryWidget.subwidgets() - Fixed exception reraising in ORM query execution when
cursor.execute()fails and the subsequentcursor.close()also fails - Fixed a regression where
CheckboxSelectMultiple,NullBooleanSelect,RadioSelect,SelectMultiple, andSelectlocalized option values - Corrected the stack level of unordered queryset pagination warnings
- Fixed a regression causing incorrect queries for
__insubquery lookups when models useForeignKey.to_field - Fixed crash when overriding the template of
django.views.static.directory_index() - Fixed a regression in formset
min_numvalidation with unchanged forms that have initial data - Prepared for
cx_Oracle6.0 support - Updated the
contrib.postgresSplitArrayWidgetto use template-based widget rendering - Fixed crash in
BaseGeometryWidget.get_context()when overriding existingattrs - Prevented
AddIndexandRemoveIndexfrom mutating model state - Prevented migrations from dropping database indexes from
Meta.indexeswhen changingField.db_indextoFalse - Fixed a regression in choice ordering in form fields with grouped and non-grouped options
- Fixed crash in
BaseInlineFormSet._construct_form()when usingsave_as_new - Fixed a regression where
Model._state.dbwasn’t set correctly on multi-table inheritance parent models after saving a child model - Corrected the return type of
ArrayField(CITextField())values retrieved from the database - Fixed
QuerySet.prefetch_related()crash when fetching relations in nestedPrefetchobjects - Prevented hiding GDAL errors if it’s not installed when using
contrib.gis. (It’s a required dependency as of Django 1.11.) - Fixed a regression causing
__inlookups on a foreign key to fail when using the foreign key’s parent model as the lookup value
下载地址:
转自 http://ift.tt/2pOsGAl
The post Django 1.11.1 发布,Python 的 Web 框架 appeared first on Linuxeden开源社区.
http://ift.tt/2pm68nQ
没有评论:
发表评论