1.8.1.txt 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. ==========================
  2. Django 1.8.1 release notes
  3. ==========================
  4. *May 1, 2015*
  5. Django 1.8.1 fixes several bugs in 1.8 and includes some optimizations in the
  6. migrations framework.
  7. Bugfixes
  8. ========
  9. * Added support for serializing :class:`~datetime.timedelta` objects in
  10. migrations (:ticket:`24566`).
  11. * Restored proper parsing of the :djadmin:`testserver` command's positional
  12. arguments (fixture names) (:ticket:`24571`).
  13. * Prevented ``TypeError`` in translation functions ``check_for_language()`` and
  14. ``get_language_bidi()`` when translations are deactivated (:ticket:`24569`).
  15. * Fixed :djadmin:`squashmigrations` command when using
  16. :class:`~django.db.migrations.operations.SeparateDatabaseAndState`
  17. (:ticket:`24278`).
  18. * Stripped microseconds from ``datetime`` values when using an older version of
  19. the MySQLdb DB API driver as it does not support fractional seconds
  20. (:ticket:`24584`).
  21. * Fixed a migration crash when altering
  22. :class:`~django.db.models.ManyToManyField`\s (:ticket:`24513`).
  23. * Fixed a crash with ``QuerySet.update()`` on foreign keys to one-to-one fields
  24. (:ticket:`24578`).
  25. * Fixed a regression in the model detail view of
  26. :mod:`~django.contrib.admindocs` when a model has a reverse foreign key
  27. relation (:ticket:`24624`).
  28. * Prevented arbitrary file inclusions in :mod:`~django.contrib.admindocs`
  29. (:ticket:`24625`).
  30. * Fixed a crash with ``QuerySet.update()`` on foreign keys to instances with
  31. ``uuid`` primary keys (:ticket:`24611`).
  32. * Fixed database introspection with SQLite 3.8.9 (released April 8, 2015)
  33. (:ticket:`24637`).
  34. * Updated ``urlpatterns`` examples generated by :djadmin:`startproject` to
  35. remove usage of referencing views by dotted path in
  36. :func:`~django.conf.urls.url` which is deprecated in Django 1.8
  37. (:ticket:`24635`).
  38. * Fixed queries where an expression was referenced in ``order_by()``, but wasn't
  39. part of the select clause. An example query is
  40. ``qs.annotate(foo=F('field')).values('pk').order_by('foo'))`` (:ticket:`24615`).
  41. * Fixed a database table name quoting regression (:ticket:`24605`).
  42. * Prevented the loss of ``null``/``not null`` column properties during field
  43. alteration of MySQL databases (:ticket:`24595`).
  44. * Fixed JavaScript path of ``contrib.admin``’s related field widget when using
  45. alternate static file storages (:ticket:`24655`).
  46. * Fixed a migration crash when adding new relations to models
  47. (:ticket:`24573`).
  48. * Fixed a migration crash when applying migrations with model managers on
  49. Python 3 that were generated on Python 2 (:ticket:`24701`).
  50. * Restored the ability to use iterators as queryset filter arguments
  51. (:ticket:`24719`).
  52. * Fixed a migration crash when renaming the target model of a many-to-many
  53. relation (:ticket:`24725`).
  54. * Removed flushing of the test database with :option:`test --keepdb`, which
  55. prevented apps with data migrations from using the option (:ticket:`24729`).
  56. * Fixed ``makemessages`` crash in some locales (:ticket:`23271`).
  57. * Fixed help text positioning of ``contrib.admin`` fields that use the
  58. ``ModelAdmin.filter_horizontal`` and ``filter_vertical`` options
  59. (:ticket:`24676`).
  60. * Fixed ``AttributeError: function 'GDALAllRegister' not found`` error when
  61. initializing ``contrib.gis`` on Windows.
  62. Optimizations
  63. =============
  64. * Changed ``ModelState`` to deepcopy fields instead of deconstructing and
  65. reconstructing (:ticket:`24591`). This speeds up the rendering of model
  66. states and reduces memory usage when running :djadmin:`manage.py migrate
  67. <migrate>` (although other changes in this release may negate any performance
  68. benefits).