deprecation.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. .. _internals-deprecation:
  2. ===========================
  3. Django Deprecation Timeline
  4. ===========================
  5. This document outlines when various pieces of Django will be removed, following
  6. their deprecation, as per the :ref:`Django deprecation policy
  7. <internal-release-deprecation-policy>`
  8. * 1.3
  9. * ``AdminSite.root()``. This release will remove the old method for
  10. hooking up admin URLs. This has been deprecated since the 1.1
  11. release.
  12. * 1.4
  13. * ``CsrfResponseMiddleware``. This has been deprecated since the 1.2
  14. release, in favour of the template tag method for inserting the CSRF
  15. token. ``CsrfMiddleware``, which combines ``CsrfResponseMiddleware``
  16. and ``CsrfViewMiddleware``, is also deprecated.
  17. * The old imports for CSRF functionality (``django.contrib.csrf.*``),
  18. which moved to core in 1.2, will be removed.
  19. * ``SMTPConnection``. The 1.2 release deprecated the ``SMTPConnection``
  20. class in favor of a generic E-mail backend API.
  21. * The many to many SQL generation functions on the database backends
  22. will be removed. These have been deprecated since the 1.2 release.
  23. * The ``Message`` model (in ``django.contrib.auth``), its related
  24. manager in the ``User`` model (``user.message_set``), and the
  25. associated methods (``user.message_set.create()`` and
  26. ``user.get_and_delete_messages()``), which have
  27. been deprecated since the 1.2 release, will be removed. The
  28. :ref:`messages framework <ref-contrib-messages>` should be used
  29. instead.
  30. * 2.0
  31. * ``django.views.defaults.shortcut()``. This function has been moved
  32. to ``django.contrib.contenttypes.views.shortcut()`` as part of the
  33. goal of removing all ``django.contrib`` references from the core
  34. Django codebase. The old shortcut will be removed in the 2.0
  35. release.