Django 1.8.1 release notes
Django 1.8.1 fixes several bugs in 1.8 and includes some optimizations in the migrations framework.
- Added support for serializing objects in migrations (#24566).
- Restored proper parsing of the command’s positional arguments (fixture names) (#24571).
- Prevented
TypeError
in translation functionscheck_for_language()
andget_language_bidi()
when translations are deactivated (). - Fixed
squashmigrations
command when using (#24278). - Stripped microseconds from
datetime
values when using an older version of the MySQLdb DB API driver as it does not support fractional seconds (). - Fixed a migration crash when altering
ManyToManyField
s (). - Fixed a regression in the model detail view of when a model has a reverse foreign key relation ().
- Prevented arbitrary file inclusions in
admindocs
(). - Fixed a crash with
QuerySet.update()
on foreign keys to instances withuuid
primary keys (#24611). - Fixed database introspection with SQLite 3.8.9 (released April 8, 2015) ().
- Updated
urlpatterns
examples generated bystartproject
to remove usage of referencing views by dotted path indjango.conf.urls.url()
which is deprecated in Django 1.8 (). - Fixed queries where an expression was referenced in
order_by()
, but wasn’t part of the select clause. An example query isqs.annotate(foo=F('field')).values('pk').order_by('foo'))
(#24615). - Fixed a database table name quoting regression ().
- Prevented the loss of
null
/ column properties during field alteration of MySQL databases (#24595). - Fixed a migration crash when adding new relations to models ().
- Fixed a migration crash when applying migrations with model managers on Python 3 that were generated on Python 2 (#24701).
- Restored the ability to use iterators as queryset filter arguments ().
- Fixed a migration crash when renaming the target model of a many-to-many relation (#24725).
- Removed flushing of the test database with , which prevented apps with data migrations from using the option (#24729).
- Fixed
makemessages
crash in some locales (). - Fixed help text positioning of
contrib.admin
fields that use theModelAdmin.filter_horizontal
andfilter_vertical
options (#24676). - Fixed
AttributeError: function 'GDALAllRegister' not found
error when initializingcontrib.gis
on Windows.