May 6, 2017
Django 1.11.1 adds a minor feature and fixes several bugs in 1.11.
The change in Django 1.11 to make QuerySet.iterator()
use server-side
cursors on PostgreSQL prevents running Django with pgBouncer in transaction
pooling mode. To reallow that, use the DISABLE_SERVER_SIDE_CURSORS
setting in DATABASES
.
See Transaction pooling and server-side cursors for more discussion.
Index
’s name
argument. If you created a
named index with Django 1.11, makemigrations
will create a migration to
recreate the index with the correct name (#28051).__icontains
lookup on a ArrayField
(#28038).EmailMessage
’s attachments
argument (#28042).QuerySet.filter()
crash when it references the name of a
OneToOneField
primary key (#28047).BoundField
s without any choices
evaluating to True
(#28058).SessionBase.cycle_key()
from losing session data if
_session_cache
isn't populated (#28066).ReadOnlyPasswordHashWidget
(used in the admin's user
change page) (#28097).ModelIterable
subclasses
(#28096).contrib.auth
admin for el
,
es_MX
, and pt
translations (#28100).class
attribute in the <ul>
of widgets
that use the multiple_input.html
template. This fixes
ModelAdmin.radio_fields
with admin.HORIZONTAL
(#28059).BaseGeometryWidget.subwidgets()
(#28039).cursor.execute()
fails and the subsequent cursor.close()
also fails (#28091).CheckboxSelectMultiple
, NullBooleanSelect
,
RadioSelect
, SelectMultiple
, and Select
localized option values
(#28075).__in
subquery lookups
when models use ForeignKey.to_field
(#28101).django.views.static.directory_index()
(#28122).min_num
validation with unchanged forms
that have initial data (#28130).cx_Oracle
6.0 support (#28138).contrib.postgres
SplitArrayWidget
to use template-based
widget rendering (#28040).BaseGeometryWidget.get_context()
when overriding existing
attrs
(#28105).AddIndex
and RemoveIndex
from mutating model state
(#28043).Meta.indexes
when changing Field.db_index
to False
(#28052).BaseInlineFormSet._construct_form()
when using
save_as_new
(#28159).Model._state.db
wasn't set correctly on
multi-table inheritance parent models after saving a child model
(#28166).ArrayField(CITextField())
values retrieved
from the database (#28161).QuerySet.prefetch_related()
crash when fetching relations in nested
Prefetch
objects (#27554).contrib.gis
(#28160). (It's a required dependency as of Django 1.11.)__in
lookups on a foreign key to fail when
using the foreign key's parent model as the lookup value (#28175).1月 11, 2019