January 2, 2015
Django 1.7.2 fixes several bugs in 1.7.1.
Additionally, Django's vendored version of six, django.utils.six
, has
been upgraded to the latest release (1.9.0).
Meta.db_table
(#23630).id
field to a model on
SQLite (#23702).RuntimeError
was raised every time two models clashed in the app registry.
(#23621).flush
from loading initial data for migrated apps
(#23699).makemessages
regression in 1.7.1 when
STATIC_ROOT
has the default None
value (#23717).GeometryField
s in migrations
(#23719).AlterIndexTogether
or AlterUniqueTogether
(#23614).GeometryField
s with blank=True
on PostGIS (#23731).DateTimeField()
as Transform.output_field
(#23420).float("nan")
and
float("inf")
(#23770).queryset
attribute
but no limit_choices_to
could not be used in a
ModelForm
(#23795).db_type
returned None
(#23761).index_together
(#23859).squashmigrations
to respect the --no-optimize
parameter
(#23799).RenameModel
reversible
(#22248)index/unique_together
constraint (#23794).django.core.files.File.__repr__()
when the file's name
contains
Unicode characters (#23888).delete_selected
view that prevented
custom site header, etc. from appearing (#23898).index_together
handling for SQLite (#23880).RunSQL
SQL content was collected by the schema editor,
typically when using sqlmigrate
(#23909).contrib.admin
add/change views which caused some
ModelAdmin
methods to receive the incorrect obj
value
(#23934).runserver
crash when socket error message contained Unicode
characters (#23946).type
when adding a deconstruct()
method
(#23950).django.contrib.auth.middleware.SessionAuthenticationMiddleware
from
setting a "Vary: Cookie"
header on all responses (#23939).blank=True
to TextField()
on MySQL
(#23920).{text|varchar}_pattern_ops
indexes
(#23954).makemigrations
that created broken migration files when
dealing with multiple table inheritance and inheriting from more than one
model (#23956).MultiValueField
has invalid data (#23674).related_name
to text (Unicode), since that is required
on Python 3 for interpolation. Removed conversion of related_name
to text
in migration deconstruction (#23455 and #23982).timesince
filter translations in Korean (#23989).SchemaEditor
to properly add defaults in the absence of
a user specified default
. For example, a CharField
with blank=True
didn't set existing rows to an empty string which resulted in a crash when
adding the NOT NULL
constraint (#23987).makemigrations
no longer prompts for a default value when adding
TextField()
or CharField()
without a default
(#23405).order_with_respect_to
to a table
with existing rows (#23983).pre_migrate
signal if all apps have migrations
(#23975).AdminSite
s (#23497).AppRegistryNotReady
exception (#24007).datetime.time
support to migrations questioner (#23998).AlterModelOptions
operation
instead of DeleteModel
and CreateModel
operations when changing
Meta.managed
. This prevents data loss when changing managed
from
False
to True
and vice versa (#24037).sqlsequencereset
command on apps with migrations
(#24054).contrib.sites
default site creation in a multiple database
setup (#24000).str
or bytes
in
django.utils.safestring.mark_for_escaping()
on Python 3.__html__
convention in the template engine (#23831).DROP DEFAULT
SQL in migrations (#23581).ValidationError
is initialized with a ValidationError
that is initialized with a dictionary (#24008).migrate --list
(#23366).5月 26, 2021