1.7.txt 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. ============================================
  2. Django 1.7 release notes - UNDER DEVELOPMENT
  3. ============================================
  4. Welcome to Django 1.7!
  5. These release notes cover the `new features`_, as well as some `backwards
  6. incompatible changes`_ you'll want to be aware of when upgrading from Django
  7. 1.6 or older versions. We've also dropped some features, which are detailed in
  8. :doc:`our deprecation plan </internals/deprecation>`, and we've `begun the
  9. deprecation process for some features`_.
  10. .. _`new features`: `What's new in Django 1.7`_
  11. .. _`backwards incompatible changes`: `Backwards incompatible changes in 1.7`_
  12. .. _`begun the deprecation process for some features`: `Features deprecated in 1.7`_
  13. What's new in Django 1.7
  14. ========================
  15. Admin shortcuts support time zones
  16. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  17. The "today" and "now" shortcuts next to date and time input widgets in the
  18. admin are now operating in the :ref:`current time zone
  19. <default-current-time-zone>`. Previously, they used the browser time zone,
  20. which could result in saving the wrong value when it didn't match the current
  21. time zone on the server.
  22. In addition, the widgets now display a help message when the browser and
  23. server time zone are different, to clarify how the value inserted in the field
  24. will be interpreted.
  25. Minor features
  26. ~~~~~~~~~~~~~~
  27. * The new :attr:`UploadedFile.content_type_extra
  28. <django.core.files.uploadedfile.UploadedFile.content_type_extra>` attribute
  29. contains extra parameters passed to the ``content-type`` header on a file
  30. upload.
  31. * The ``enter`` argument was added to the
  32. :data:`~django.test.signals.setting_changed` signal.
  33. Backwards incompatible changes in 1.7
  34. =====================================
  35. .. warning::
  36. In addition to the changes outlined in this section, be sure to review the
  37. :doc:`deprecation plan </internals/deprecation>` for any features that
  38. have been removed. If you haven't updated your code within the
  39. deprecation timeline for a given feature, its removal may appear as a
  40. backwards incompatible change.
  41. Miscellaneous
  42. ~~~~~~~~~~~~~
  43. * The :meth:`django.core.files.uploadhandler.FileUploadHandler.new_file()`
  44. method is now passed an additional ``content_type_extra`` parameter. If you
  45. have a custom :class:`~django.core.files.uploadhandler.FileUploadHandler`
  46. that implements ``new_file()``, be sure it accepts this new parameter.
  47. Features deprecated in 1.7
  48. ==========================
  49. ``django.utils.dictconfig``
  50. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  51. ``django.utils.dictconfig`` was a copy of :mod:`logging.config` provided for
  52. Python versions prior to 2.7. It has been deprecated.
  53. ``django.utils.unittest``
  54. ~~~~~~~~~~~~~~~~~~~~~~~~~
  55. ``django.utils.unittest`` provided uniform access to the ``unittest2`` library
  56. on all Python versions. Since ``unittest2`` became the standard library's
  57. :mod:`unittest` module in Python 2.7, and Django 1.7 drops support for older
  58. Python versions, this module isn't useful anymore. It has been deprecated. Use
  59. :mod:`unittest` instead.