deprecation.txt 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177
  1. ===========================
  2. Django Deprecation Timeline
  3. ===========================
  4. This document outlines when various pieces of Django will be removed or altered
  5. in a backward incompatible way, following their deprecation, as per the
  6. :ref:`deprecation policy <internal-release-deprecation-policy>`. More details
  7. about each item can often be found in the release notes of two versions prior.
  8. .. _deprecation-removed-in-5.0:
  9. 5.0
  10. ---
  11. See the :ref:`Django 4.0 release notes <deprecated-features-4.0>` for more
  12. details on these changes.
  13. * The ``SERIALIZE`` test setting will be removed.
  14. .. _deprecation-removed-in-4.1:
  15. 4.1
  16. ---
  17. See the :ref:`Django 3.2 release notes <deprecated-features-3.2>` for more
  18. details on these changes.
  19. * Support for assigning objects which don't support creating deep copies with
  20. ``copy.deepcopy()`` to class attributes in ``TestCase.setUpTestData()`` will
  21. be removed.
  22. * ``BaseCommand.requires_system_checks`` won't support boolean values.
  23. * The ``whitelist`` argument and ``domain_whitelist`` attribute of
  24. ``django.core.validators.EmailValidator`` will be removed.
  25. * The ``default_app_config`` module variable will be removed.
  26. * ``TransactionTestCase.assertQuerysetEqual()` will no longer automatically
  27. call ``repr()`` on a queryset when compared to string values.
  28. * ``django.core.cache.backends.memcached.MemcachedCache`` will be removed.
  29. * Support for the pre-Django 3.2 format of messages used by
  30. ``django.contrib.messages.storage.cookie.CookieStorage`` will be removed.
  31. .. _deprecation-removed-in-4.0:
  32. 4.0
  33. ---
  34. See the :ref:`Django 3.0 release notes <deprecated-features-3.0>` for more
  35. details on these changes.
  36. * ``django.utils.http.urlquote()``, ``urlquote_plus()``, ``urlunquote()``, and
  37. ``urlunquote_plus()`` will be removed.
  38. * ``django.utils.encoding.force_text()`` and ``smart_text()`` will be removed.
  39. * ``django.utils.translation.ugettext()``, ``ugettext_lazy()``,
  40. ``ugettext_noop()``, ``ungettext()``, and ``ungettext_lazy()`` will be
  41. removed.
  42. * ``django.views.i18n.set_language()`` will no longer set the user language in
  43. ``request.session`` (key ``django.utils.translation.LANGUAGE_SESSION_KEY``).
  44. * ``alias=None`` will be required in the signature of
  45. ``django.db.models.Expression.get_group_by_cols()`` subclasses.
  46. * ``django.utils.text.unescape_entities()`` will be removed.
  47. * ``django.utils.http.is_safe_url()`` will be removed.
  48. See the :ref:`Django 3.1 release notes <deprecated-features-3.1>` for more
  49. details on these changes.
  50. * The ``PASSWORD_RESET_TIMEOUT_DAYS`` setting will be removed.
  51. * The undocumented usage of the :lookup:`isnull` lookup with non-boolean values
  52. as the right-hand side will no longer be allowed.
  53. * The ``django.db.models.query_utils.InvalidQuery`` exception class will be
  54. removed.
  55. * The ``django-admin.py`` entry point will be removed.
  56. * The ``HttpRequest.is_ajax()`` method will be removed.
  57. * Support for the pre-Django 3.1 encoding format of cookies values used by
  58. ``django.contrib.messages.storage.cookie.CookieStorage`` will be removed.
  59. * Support for the pre-Django 3.1 password reset tokens in the admin site (that
  60. use the SHA-1 hashing algorithm) will be removed.
  61. * Support for the pre-Django 3.1 encoding format of sessions will be removed.
  62. * Support for the pre-Django 3.1 ``django.core.signing.Signer`` signatures
  63. (encoded with the SHA-1 algorithm) will be removed.
  64. * Support for the pre-Django 3.1 ``django.core.signing.dumps()`` signatures
  65. (encoded with the SHA-1 algorithm) in ``django.core.signing.loads()`` will be
  66. removed.
  67. * Support for the pre-Django 3.1 user sessions (that use the SHA-1 algorithm)
  68. will be removed.
  69. * The ``get_request`` argument for
  70. ``django.utils.deprecation.MiddlewareMixin.__init__()`` will be required and
  71. won't accept ``None``.
  72. * The ``providing_args`` argument for ``django.dispatch.Signal`` will be
  73. removed.
  74. * The ``length`` argument for ``django.utils.crypto.get_random_string()`` will
  75. be required.
  76. * The ``list`` message for ``ModelMultipleChoiceField`` will be removed.
  77. * Support for passing raw column aliases to ``QuerySet.order_by()`` will be
  78. removed.
  79. * The model ``NullBooleanField`` will be removed. A stub field will remain for
  80. compatibility with historical migrations.
  81. * ``django.conf.urls.url()`` will be removed.
  82. * The model ``django.contrib.postgres.fields.JSONField`` will be removed. A
  83. stub field will remain for compatibility with historical migrations.
  84. * ``django.contrib.postgres.forms.JSONField``,
  85. ``django.contrib.postgres.fields.jsonb.KeyTransform``, and
  86. ``django.contrib.postgres.fields.jsonb.KeyTextTransform`` will be removed.
  87. * The ``{% ifequal %}`` and ``{% ifnotequal %}`` template tags will be removed.
  88. * The ``DEFAULT_HASHING_ALGORITHM`` transitional setting will be removed.
  89. .. _deprecation-removed-in-3.1:
  90. 3.1
  91. ---
  92. See the :ref:`Django 2.2 release notes <deprecated-features-2.2>` for more
  93. details on these changes.
  94. * ``django.utils.timezone.FixedOffset`` will be removed.
  95. * ``django.core.paginator.QuerySetPaginator`` will be removed.
  96. * A model's ``Meta.ordering`` will no longer affect ``GROUP BY`` queries.
  97. * ``django.contrib.postgres.fields.FloatRangeField`` and
  98. ``django.contrib.postgres.forms.FloatRangeField`` will be removed.
  99. * The ``FILE_CHARSET`` setting will be removed.
  100. * ``django.contrib.staticfiles.storage.CachedStaticFilesStorage`` will be
  101. removed.
  102. * ``RemoteUserBackend.configure_user()`` will require ``request`` as the first
  103. positional argument.
  104. * Support for ``SimpleTestCase.allow_database_queries`` and
  105. ``TransactionTestCase.multi_db`` will be removed.
  106. .. _deprecation-removed-in-3.0:
  107. 3.0
  108. ---
  109. See the :ref:`Django 2.0 release notes<deprecated-features-2.0>` for more
  110. details on these changes.
  111. * The ``django.db.backends.postgresql_psycopg2`` module will be removed.
  112. * ``django.shortcuts.render_to_response()`` will be removed.
  113. * The ``DEFAULT_CONTENT_TYPE`` setting will be removed.
  114. * ``HttpRequest.xreadlines()`` will be removed.
  115. * Support for the ``context`` argument of ``Field.from_db_value()`` and
  116. ``Expression.convert_value()`` will be removed.
  117. * The ``field_name`` keyword argument of ``QuerySet.earliest()`` and
  118. ``latest()`` will be removed.
  119. See the :ref:`Django 2.1 release notes <deprecated-features-2.1>` for more
  120. details on these changes.
  121. * ``django.contrib.gis.db.models.functions.ForceRHR`` will be removed.
  122. * ``django.utils.http.cookie_date()`` will be removed.
  123. * The ``staticfiles`` and ``admin_static`` template tag libraries will be
  124. removed.
  125. * ``django.contrib.staticfiles.templatetags.static()`` will be removed.
  126. * The shim to allow ``InlineModelAdmin.has_add_permission()`` to be defined
  127. without an ``obj`` argument will be removed.
  128. .. _deprecation-removed-in-2.1:
  129. 2.1
  130. ---
  131. See the :ref:`Django 1.11 release notes<deprecated-features-1.11>` for more
  132. details on these changes.
  133. * ``contrib.auth.views.login()``, ``logout()``, ``password_change()``,
  134. ``password_change_done()``, ``password_reset()``, ``password_reset_done()``,
  135. ``password_reset_confirm()``, and ``password_reset_complete()`` will be
  136. removed.
  137. * The ``extra_context`` parameter of ``contrib.auth.views.logout_then_login()``
  138. will be removed.
  139. * ``django.test.runner.setup_databases()`` will be removed.
  140. * ``django.utils.translation.string_concat()`` will be removed.
  141. * ``django.core.cache.backends.memcached.PyLibMCCache`` will no longer support
  142. passing ``pylibmc`` behavior settings as top-level attributes of ``OPTIONS``.
  143. * The ``host`` parameter of ``django.utils.http.is_safe_url()`` will be
  144. removed.
  145. * Silencing of exceptions raised while rendering the ``{% include %}`` template
  146. tag will be removed.
  147. * ``DatabaseIntrospection.get_indexes()`` will be removed.
  148. * The ``authenticate()`` method of authentication backends will require
  149. ``request`` as the first positional argument.
  150. * The ``django.db.models.permalink()`` decorator will be removed.
  151. * The ``USE_ETAGS`` setting will be removed. ``CommonMiddleware`` and
  152. ``django.utils.cache.patch_response_headers()`` will no longer set ETags.
  153. * The ``Model._meta.has_auto_field`` attribute will be removed.
  154. * ``url()``'s support for inline flags in regular expression groups (``(?i)``,
  155. ``(?L)``, ``(?m)``, ``(?s)``, and ``(?u)``) will be removed.
  156. * Support for ``Widget.render()`` methods without the ``renderer`` argument
  157. will be removed.
  158. .. _deprecation-removed-in-2.0:
  159. 2.0
  160. ---
  161. See the :ref:`Django 1.9 release notes<deprecated-features-1.9>` for more
  162. details on these changes.
  163. * The ``weak`` argument to ``django.dispatch.signals.Signal.disconnect()`` will
  164. be removed.
  165. * ``django.db.backends.base.BaseDatabaseOperations.check_aggregate_support()``
  166. will be removed.
  167. * The ``django.forms.extras`` package will be removed.
  168. * The ``assignment_tag`` helper will be removed.
  169. * The ``host`` argument to ``assertsRedirects`` will be removed. The
  170. compatibility layer which allows absolute URLs to be considered equal to
  171. relative ones when the path is identical will also be removed.
  172. * ``Field.rel`` will be removed.
  173. * ``Field.remote_field.to`` attribute will be removed.
  174. * The ``on_delete`` argument for ``ForeignKey`` and ``OneToOneField`` will be
  175. required.
  176. * ``django.db.models.fields.add_lazy_relation()`` will be removed.
  177. * When time zone support is enabled, database backends that don't support time
  178. zones won't convert aware datetimes to naive values in UTC anymore when such
  179. values are passed as parameters to SQL queries executed outside of the ORM,
  180. e.g. with ``cursor.execute()``.
  181. * The ``django.contrib.auth.tests.utils.skipIfCustomUser()`` decorator will be
  182. removed.
  183. * The ``GeoManager`` and ``GeoQuerySet`` classes will be removed.
  184. * The ``django.contrib.gis.geoip`` module will be removed.
  185. * The ``supports_recursion`` check for template loaders will be removed from:
  186. * ``django.template.engine.Engine.find_template()``
  187. * ``django.template.loader_tags.ExtendsNode.find_template()``
  188. * ``django.template.loaders.base.Loader.supports_recursion()``
  189. * ``django.template.loaders.cached.Loader.supports_recursion()``
  190. * The ``load_template()`` and ``load_template_sources()`` template loader
  191. methods will be removed.
  192. * The ``template_dirs`` argument for template loaders will be removed:
  193. * ``django.template.loaders.base.Loader.get_template()``
  194. * ``django.template.loaders.cached.Loader.cache_key()``
  195. * ``django.template.loaders.cached.Loader.get_template()``
  196. * ``django.template.loaders.cached.Loader.get_template_sources()``
  197. * ``django.template.loaders.filesystem.Loader.get_template_sources()``
  198. * The ``django.template.loaders.base.Loader.__call__()`` method will be
  199. removed.
  200. * Support for custom error views with a single positional parameter will be
  201. dropped.
  202. * The ``mime_type`` attribute of ``django.utils.feedgenerator.Atom1Feed`` and
  203. ``django.utils.feedgenerator.RssFeed`` will be removed in favor of
  204. ``content_type``.
  205. * The ``app_name`` argument to ``django.conf.urls.include()`` will be
  206. removed.
  207. * Support for passing a 3-tuple as the first argument to ``include()`` will
  208. be removed.
  209. * Support for setting a URL instance namespace without an application
  210. namespace will be removed.
  211. * ``Field._get_val_from_obj()`` will be removed in favor of
  212. ``Field.value_from_object()``.
  213. * ``django.template.loaders.eggs.Loader`` will be removed.
  214. * The ``current_app`` parameter to the ``contrib.auth`` views will be removed.
  215. * The ``callable_obj`` keyword argument to
  216. ``SimpleTestCase.assertRaisesMessage()`` will be removed.
  217. * Support for the ``allow_tags`` attribute on ``ModelAdmin`` methods will be
  218. removed.
  219. * The ``enclosure`` keyword argument to ``SyndicationFeed.add_item()`` will be
  220. removed.
  221. * The ``django.template.loader.LoaderOrigin`` and
  222. ``django.template.base.StringOrigin`` aliases for
  223. ``django.template.base.Origin`` will be removed.
  224. See the :ref:`Django 1.10 release notes <deprecated-features-1.10>` for more
  225. details on these changes.
  226. * The ``makemigrations --exit`` option will be removed.
  227. * Support for direct assignment to a reverse foreign key or many-to-many
  228. relation will be removed.
  229. * The ``get_srid()`` and ``set_srid()`` methods of
  230. ``django.contrib.gis.geos.GEOSGeometry`` will be removed.
  231. * The ``get_x()``, ``set_x()``, ``get_y()``, ``set_y()``, ``get_z()``, and
  232. ``set_z()`` methods of ``django.contrib.gis.geos.Point`` will be removed.
  233. * The ``get_coords()`` and ``set_coords()`` methods of
  234. ``django.contrib.gis.geos.Point`` will be removed.
  235. * The ``cascaded_union`` property of ``django.contrib.gis.geos.MultiPolygon``
  236. will be removed.
  237. * ``django.utils.functional.allow_lazy()`` will be removed.
  238. * The ``shell --plain`` option will be removed.
  239. * The ``django.core.urlresolvers`` module will be removed.
  240. * The model ``CommaSeparatedIntegerField`` will be removed. A stub field will
  241. remain for compatibility with historical migrations.
  242. * Support for the template ``Context.has_key()`` method will be removed.
  243. * Support for the ``django.core.files.storage.Storage.accessed_time()``,
  244. ``created_time()``, and ``modified_time()`` methods will be removed.
  245. * Support for query lookups using the model name when
  246. ``Meta.default_related_name`` is set will be removed.
  247. * The ``__search`` query lookup and the
  248. ``DatabaseOperations.fulltext_search_sql()`` method will be removed.
  249. * The shim for supporting custom related manager classes without a
  250. ``_apply_rel_filters()`` method will be removed.
  251. * Using ``User.is_authenticated()`` and ``User.is_anonymous()`` as methods
  252. will no longer be supported.
  253. * The private attribute ``virtual_fields`` of ``Model._meta`` will be removed.
  254. * The private keyword arguments ``virtual_only`` in
  255. ``Field.contribute_to_class()`` and ``virtual`` in
  256. ``Model._meta.add_field()`` will be removed.
  257. * The ``javascript_catalog()`` and ``json_catalog()`` views will be removed.
  258. * The ``django.contrib.gis.utils.precision_wkt()`` function will be removed.
  259. * In multi-table inheritance, implicit promotion of a ``OneToOneField`` to a
  260. ``parent_link`` will be removed.
  261. * Support for ``Widget._format_value()`` will be removed.
  262. * ``FileField`` methods ``get_directory_name()`` and ``get_filename()`` will be
  263. removed.
  264. * The ``mark_for_escaping()`` function and the classes it uses: ``EscapeData``,
  265. ``EscapeBytes``, ``EscapeText``, ``EscapeString``, and ``EscapeUnicode`` will
  266. be removed.
  267. * The ``escape`` filter will change to use
  268. ``django.utils.html.conditional_escape()``.
  269. * ``Manager.use_for_related_fields`` will be removed.
  270. * Model ``Manager`` inheritance will follow MRO inheritance rules and the
  271. ``Meta.manager_inheritance_from_future`` to opt-in to this behavior will be
  272. removed.
  273. * Support for old-style middleware using ``settings.MIDDLEWARE_CLASSES`` will
  274. be removed.
  275. .. _deprecation-removed-in-1.10:
  276. 1.10
  277. ----
  278. See the :ref:`Django 1.8 release notes<deprecated-features-1.8>` for more
  279. details on these changes.
  280. * Support for calling a ``SQLCompiler`` directly as an alias for calling its
  281. ``quote_name_unless_alias`` method will be removed.
  282. * ``cycle`` and ``firstof`` template tags will be removed from the ``future``
  283. template tag library (used during the 1.6/1.7 deprecation period).
  284. * ``django.conf.urls.patterns()`` will be removed.
  285. * Support for the ``prefix`` argument to
  286. ``django.conf.urls.i18n.i18n_patterns()`` will be removed.
  287. * ``SimpleTestCase.urls`` will be removed.
  288. * Using an incorrect count of unpacked values in the ``for`` template tag
  289. will raise an exception rather than fail silently.
  290. * The ability to reverse URLs using a dotted Python path will be removed.
  291. * The ability to use a dotted Python path for the ``LOGIN_URL`` and
  292. ``LOGIN_REDIRECT_URL`` settings will be removed.
  293. * Support for :py:mod:`optparse` will be dropped for custom management commands
  294. (replaced by :py:mod:`argparse`).
  295. * The class ``django.core.management.NoArgsCommand`` will be removed. Use
  296. :class:`~django.core.management.BaseCommand` instead, which takes no arguments
  297. by default.
  298. * ``django.core.context_processors`` module will be removed.
  299. * ``django.db.models.sql.aggregates`` module will be removed.
  300. * ``django.contrib.gis.db.models.sql.aggregates`` module will be removed.
  301. * The following methods and properties of ``django.db.sql.query.Query`` will
  302. be removed:
  303. * Properties: ``aggregates`` and ``aggregate_select``
  304. * Methods: ``add_aggregate``, ``set_aggregate_mask``, and
  305. ``append_aggregate_mask``.
  306. * ``django.template.resolve_variable`` will be removed.
  307. * The following private APIs will be removed from
  308. :class:`django.db.models.options.Options` (``Model._meta``):
  309. * ``get_field_by_name()``
  310. * ``get_all_field_names()``
  311. * ``get_fields_with_model()``
  312. * ``get_concrete_fields_with_model()``
  313. * ``get_m2m_with_model()``
  314. * ``get_all_related_objects()``
  315. * ``get_all_related_objects_with_model()``
  316. * ``get_all_related_many_to_many_objects()``
  317. * ``get_all_related_m2m_objects_with_model()``
  318. * The ``error_message`` argument of ``django.forms.RegexField`` will be removed.
  319. * The ``unordered_list`` filter will no longer support old style lists.
  320. * Support for string ``view`` arguments to ``url()`` will be removed.
  321. * The backward compatible shim to rename ``django.forms.Form._has_changed()``
  322. to ``has_changed()`` will be removed.
  323. * The ``removetags`` template filter will be removed.
  324. * The ``remove_tags()`` and ``strip_entities()`` functions in
  325. ``django.utils.html`` will be removed.
  326. * The ``is_admin_site`` argument to
  327. ``django.contrib.auth.views.password_reset()`` will be removed.
  328. * ``django.db.models.field.subclassing.SubfieldBase`` will be removed.
  329. * ``django.utils.checksums`` will be removed; its functionality is included
  330. in ``django-localflavor`` 1.1+.
  331. * The ``original_content_type_id`` attribute on
  332. ``django.contrib.admin.helpers.InlineAdminForm`` will be removed.
  333. * The backwards compatibility shim to allow ``FormMixin.get_form()`` to be
  334. defined with no default value for its ``form_class`` argument will be removed.
  335. * The following settings will be removed:
  336. * ``ALLOWED_INCLUDE_ROOTS``
  337. * ``TEMPLATE_CONTEXT_PROCESSORS``
  338. * ``TEMPLATE_DEBUG``
  339. * ``TEMPLATE_DIRS``
  340. * ``TEMPLATE_LOADERS``
  341. * ``TEMPLATE_STRING_IF_INVALID``
  342. * The backwards compatibility alias ``django.template.loader.BaseLoader`` will
  343. be removed.
  344. * Django template objects returned by
  345. :func:`~django.template.loader.get_template` and
  346. :func:`~django.template.loader.select_template` won't accept a
  347. :class:`~django.template.Context` in their
  348. :meth:`~django.template.backends.base.Template.render()` method anymore.
  349. * :doc:`Template response APIs </ref/template-response>` will enforce the use
  350. of :class:`dict` and backend-dependent template objects instead of
  351. :class:`~django.template.Context` and :class:`~django.template.Template`
  352. respectively.
  353. * The ``current_app`` parameter for the following function and classes will be
  354. removed:
  355. * ``django.shortcuts.render()``
  356. * ``django.template.Context()``
  357. * ``django.template.RequestContext()``
  358. * ``django.template.response.TemplateResponse()``
  359. * The ``dictionary`` and ``context_instance`` parameters for the following
  360. functions will be removed:
  361. * ``django.shortcuts.render()``
  362. * ``django.shortcuts.render_to_response()``
  363. * ``django.template.loader.render_to_string()``
  364. * The ``dirs`` parameter for the following functions will be removed:
  365. * ``django.template.loader.get_template()``
  366. * ``django.template.loader.select_template()``
  367. * ``django.shortcuts.render()``
  368. * ``django.shortcuts.render_to_response()``
  369. * Session verification will be enabled regardless of whether or not
  370. ``'django.contrib.auth.middleware.SessionAuthenticationMiddleware'`` is in
  371. ``MIDDLEWARE_CLASSES``.
  372. * Private attribute ``django.db.models.Field.related`` will be removed.
  373. * The ``--list`` option of the ``migrate`` management command will be removed.
  374. * The ``ssi`` template tag will be removed.
  375. * Support for the ``=`` comparison operator in the ``if`` template tag will be
  376. removed.
  377. * The backwards compatibility shims to allow ``Storage.get_available_name()``
  378. and ``Storage.save()`` to be defined without a ``max_length`` argument will
  379. be removed.
  380. * Support for the legacy ``%(<foo>)s`` syntax in ``ModelFormMixin.success_url``
  381. will be removed.
  382. * ``GeoQuerySet`` aggregate methods ``collect()``, ``extent()``, ``extent3d()``,
  383. ``make_line()``, and ``unionagg()`` will be removed.
  384. * Ability to specify ``ContentType.name`` when creating a content type instance
  385. will be removed.
  386. * Support for the old signature of ``allow_migrate`` will be removed. It changed
  387. from ``allow_migrate(self, db, model)`` to
  388. ``allow_migrate(self, db, app_label, model_name=None, **hints)``.
  389. * Support for the syntax of ``{% cycle %}`` that uses comma-separated arguments
  390. will be removed.
  391. * The warning that :class:`~django.core.signing.Signer` issues when given an
  392. invalid separator will become an exception.
  393. .. _deprecation-removed-in-1.9:
  394. 1.9
  395. ---
  396. See the :ref:`Django 1.7 release notes<deprecated-features-1.7>` for more
  397. details on these changes.
  398. * ``django.utils.dictconfig`` will be removed.
  399. * ``django.utils.importlib`` will be removed.
  400. * ``django.utils.tzinfo`` will be removed.
  401. * ``django.utils.unittest`` will be removed.
  402. * The ``syncdb`` command will be removed.
  403. * ``django.db.models.signals.pre_syncdb`` and
  404. ``django.db.models.signals.post_syncdb`` will be removed.
  405. * ``allow_syncdb`` on database routers will no longer automatically become
  406. ``allow_migrate``.
  407. * Automatic syncing of apps without migrations will be removed. Migrations will
  408. become compulsory for all apps unless you pass the ``--run-syncdb`` option to
  409. ``migrate``.
  410. * The SQL management commands for apps without migrations, ``sql``, ``sqlall``,
  411. ``sqlclear``, ``sqldropindexes``, and ``sqlindexes``, will be removed.
  412. * Support for automatic loading of ``initial_data`` fixtures and initial SQL
  413. data will be removed.
  414. * All models will need to be defined inside an installed application or
  415. declare an explicit :attr:`~django.db.models.Options.app_label`.
  416. Furthermore, it won't be possible to import them before their application
  417. is loaded. In particular, it won't be possible to import models inside
  418. the root package of their application.
  419. * The model and form ``IPAddressField`` will be removed. A stub field will
  420. remain for compatibility with historical migrations.
  421. * ``AppCommand.handle_app()`` will no longer be supported.
  422. * ``RequestSite`` and ``get_current_site()`` will no longer be importable from
  423. ``django.contrib.sites.models``.
  424. * FastCGI support via the ``runfcgi`` management command will be
  425. removed. Please deploy your project using WSGI.
  426. * ``django.utils.datastructures.SortedDict`` will be removed. Use
  427. :class:`collections.OrderedDict` from the Python standard library instead.
  428. * ``ModelAdmin.declared_fieldsets`` will be removed.
  429. * Instances of ``util.py`` in the Django codebase have been renamed to
  430. ``utils.py`` in an effort to unify all util and utils references.
  431. The modules that provided backwards compatibility will be removed:
  432. * ``django.contrib.admin.util``
  433. * ``django.contrib.gis.db.backends.util``
  434. * ``django.db.backends.util``
  435. * ``django.forms.util``
  436. * ``ModelAdmin.get_formsets`` will be removed.
  437. * The backward compatibility shim introduced to rename the
  438. ``BaseMemcachedCache._get_memcache_timeout()`` method to
  439. ``get_backend_timeout()`` will be removed.
  440. * The ``--natural`` and ``-n`` options for :djadmin:`dumpdata` will be removed.
  441. * The ``use_natural_keys`` argument for ``serializers.serialize()`` will be
  442. removed.
  443. * Private API ``django.forms.forms.get_declared_fields()`` will be removed.
  444. * The ability to use a ``SplitDateTimeWidget`` with ``DateTimeField`` will be
  445. removed.
  446. * The ``WSGIRequest.REQUEST`` property will be removed.
  447. * The class ``django.utils.datastructures.MergeDict`` will be removed.
  448. * The ``zh-cn`` and ``zh-tw`` language codes will be removed and have been
  449. replaced by the ``zh-hans`` and ``zh-hant`` language code respectively.
  450. * The internal ``django.utils.functional.memoize`` will be removed.
  451. * ``django.core.cache.get_cache`` will be removed. Add suitable entries
  452. to :setting:`CACHES` and use :data:`django.core.cache.caches` instead.
  453. * ``django.db.models.loading`` will be removed.
  454. * Passing callable arguments to querysets will no longer be possible.
  455. * ``BaseCommand.requires_model_validation`` will be removed in favor of
  456. ``requires_system_checks``. Admin validators will be replaced by admin
  457. checks.
  458. * The ``ModelAdmin.validator_class`` and ``default_validator_class`` attributes
  459. will be removed.
  460. * ``ModelAdmin.validate()`` will be removed.
  461. * ``django.db.backends.DatabaseValidation.validate_field`` will be removed in
  462. favor of the ``check_field`` method.
  463. * The ``validate`` management command will be removed.
  464. * ``django.utils.module_loading.import_by_path`` will be removed in favor of
  465. ``django.utils.module_loading.import_string``.
  466. * ``ssi`` and ``url`` template tags will be removed from the ``future`` template
  467. tag library (used during the 1.3/1.4 deprecation period).
  468. * ``django.utils.text.javascript_quote`` will be removed.
  469. * Database test settings as independent entries in the database settings,
  470. prefixed by ``TEST_``, will no longer be supported.
  471. * The ``cache_choices`` option to :class:`~django.forms.ModelChoiceField` and
  472. :class:`~django.forms.ModelMultipleChoiceField` will be removed.
  473. * The default value of the
  474. :attr:`RedirectView.permanent <django.views.generic.base.RedirectView.permanent>`
  475. attribute will change from ``True`` to ``False``.
  476. * ``django.contrib.sitemaps.FlatPageSitemap`` will be removed in favor of
  477. ``django.contrib.flatpages.sitemaps.FlatPageSitemap``.
  478. * Private API ``django.test.utils.TestTemplateLoader`` will be removed.
  479. * The ``django.contrib.contenttypes.generic`` module will be removed.
  480. * Private APIs ``django.db.models.sql.where.WhereNode.make_atom()`` and
  481. ``django.db.models.sql.where.Constraint`` will be removed.
  482. .. _deprecation-removed-in-1.8:
  483. 1.8
  484. ---
  485. See the :ref:`Django 1.6 release notes<deprecated-features-1.6>` for more
  486. details on these changes.
  487. * ``django.contrib.comments`` will be removed.
  488. * The following transaction management APIs will be removed:
  489. - ``TransactionMiddleware``,
  490. - the decorators and context managers ``autocommit``, ``commit_on_success``,
  491. and ``commit_manually``, defined in ``django.db.transaction``,
  492. - the functions ``commit_unless_managed`` and ``rollback_unless_managed``,
  493. also defined in ``django.db.transaction``,
  494. - the ``TRANSACTIONS_MANAGED`` setting.
  495. * The :ttag:`cycle` and :ttag:`firstof` template tags will auto-escape their
  496. arguments. In 1.6 and 1.7, this behavior is provided by the version of these
  497. tags in the ``future`` template tag library.
  498. * The ``SEND_BROKEN_LINK_EMAILS`` setting will be removed. Add the
  499. :class:`django.middleware.common.BrokenLinkEmailsMiddleware` middleware to
  500. your ``MIDDLEWARE_CLASSES`` setting instead.
  501. * ``django.middleware.doc.XViewMiddleware`` will be removed. Use
  502. ``django.contrib.admindocs.middleware.XViewMiddleware`` instead.
  503. * ``Model._meta.module_name`` was renamed to ``model_name``.
  504. * Remove the backward compatible shims introduced to rename ``get_query_set``
  505. and similar queryset methods. This affects the following classes:
  506. ``BaseModelAdmin``, ``ChangeList``, ``BaseCommentNode``,
  507. ``GenericForeignKey``, ``Manager``, ``SingleRelatedObjectDescriptor`` and
  508. ``ReverseSingleRelatedObjectDescriptor``.
  509. * Remove the backward compatible shims introduced to rename the attributes
  510. ``ChangeList.root_query_set`` and ``ChangeList.query_set``.
  511. * ``django.views.defaults.shortcut`` will be removed, as part of the
  512. goal of removing all ``django.contrib`` references from the core
  513. Django codebase. Instead use
  514. ``django.contrib.contenttypes.views.shortcut``. ``django.conf.urls.shortcut``
  515. will also be removed.
  516. * Support for the Python Imaging Library (PIL) module will be removed, as it
  517. no longer appears to be actively maintained & does not work on Python 3.
  518. * The following private APIs will be removed:
  519. - ``django.db.backend``
  520. - ``django.db.close_connection()``
  521. - ``django.db.backends.creation.BaseDatabaseCreation.set_autocommit()``
  522. - ``django.db.transaction.is_managed()``
  523. - ``django.db.transaction.managed()``
  524. * ``django.forms.widgets.RadioInput`` will be removed in favor of
  525. ``django.forms.widgets.RadioChoiceInput``.
  526. * The module ``django.test.simple`` and the class
  527. ``django.test.simple.DjangoTestSuiteRunner`` will be removed. Instead use
  528. ``django.test.runner.DiscoverRunner``.
  529. * The module ``django.test._doctest`` will be removed. Instead use the doctest
  530. module from the Python standard library.
  531. * The ``CACHE_MIDDLEWARE_ANONYMOUS_ONLY`` setting will be removed.
  532. * Usage of the hard-coded *Hold down "Control", or "Command" on a Mac, to select
  533. more than one.* string to override or append to user-provided ``help_text`` in
  534. forms for ManyToMany model fields will not be performed by Django anymore
  535. either at the model or forms layer.
  536. * The ``Model._meta.get_(add|change|delete)_permission`` methods will
  537. be removed.
  538. * The session key ``django_language`` will no longer be read for backwards
  539. compatibility.
  540. * Geographic Sitemaps will be removed
  541. (``django.contrib.gis.sitemaps.views.index`` and
  542. ``django.contrib.gis.sitemaps.views.sitemap``).
  543. * ``django.utils.html.fix_ampersands``, the ``fix_ampersands`` template filter and
  544. ``django.utils.html.clean_html`` will be removed following an accelerated deprecation.
  545. .. _deprecation-removed-in-1.7:
  546. 1.7
  547. ---
  548. See the :ref:`Django 1.5 release notes<deprecated-features-1.5>` for more
  549. details on these changes.
  550. * The module ``django.utils.simplejson`` will be removed. The standard library
  551. provides :mod:`json` which should be used instead.
  552. * The function ``django.utils.itercompat.product`` will be removed. The Python
  553. builtin version should be used instead.
  554. * Auto-correction of INSTALLED_APPS and TEMPLATE_DIRS settings when they are
  555. specified as a plain string instead of a tuple will be removed and raise an
  556. exception.
  557. * The ``mimetype`` argument to the ``__init__`` methods of
  558. :class:`~django.http.HttpResponse`,
  559. :class:`~django.template.response.SimpleTemplateResponse`, and
  560. :class:`~django.template.response.TemplateResponse`, will be removed.
  561. ``content_type`` should be used instead. This also applies to the
  562. ``render_to_response()`` shortcut and the sitemap views,
  563. :func:`~django.contrib.sitemaps.views.index` and
  564. :func:`~django.contrib.sitemaps.views.sitemap`.
  565. * When :class:`~django.http.HttpResponse` is instantiated with an iterator,
  566. or when :attr:`~django.http.HttpResponse.content` is set to an iterator,
  567. that iterator will be immediately consumed.
  568. * The ``AUTH_PROFILE_MODULE`` setting, and the ``get_profile()`` method on
  569. the User model, will be removed.
  570. * The ``cleanup`` management command will be removed. It's replaced by
  571. ``clearsessions``.
  572. * The ``daily_cleanup.py`` script will be removed.
  573. * The ``depth`` keyword argument will be removed from
  574. :meth:`~django.db.models.query.QuerySet.select_related`.
  575. * The undocumented ``get_warnings_state()``/``restore_warnings_state()``
  576. functions from :mod:`django.test.utils` and the ``save_warnings_state()``/
  577. ``restore_warnings_state()``
  578. :ref:`django.test.*TestCase <django-testcase-subclasses>` methods are
  579. deprecated. Use the :class:`warnings.catch_warnings` context manager
  580. available starting with Python 2.6 instead.
  581. * The undocumented ``check_for_test_cookie`` method in
  582. :class:`~django.contrib.auth.forms.AuthenticationForm` will be removed
  583. following an accelerated deprecation. Users subclassing this form should
  584. remove calls to this method, and instead ensure that their auth related views
  585. are CSRF protected, which ensures that cookies are enabled.
  586. * The version of ``django.contrib.auth.views.password_reset_confirm()`` that
  587. supports base36 encoded user IDs
  588. (``django.contrib.auth.views.password_reset_confirm_uidb36``) will be
  589. removed. If your site has been running Django 1.6 for more than
  590. ``PASSWORD_RESET_TIMEOUT_DAYS``, this change will have no effect. If not,
  591. then any password reset links generated before you upgrade to Django 1.7
  592. won't work after the upgrade.
  593. * The ``django.utils.encoding.StrAndUnicode`` mix-in will be removed.
  594. .. _deprecation-removed-in-1.6:
  595. 1.6
  596. ---
  597. See the :ref:`Django 1.4 release notes<deprecated-features-1.4>` for more
  598. details on these changes.
  599. * ``django.contrib.databrowse`` will be removed.
  600. * ``django.contrib.localflavor`` will be removed following an accelerated
  601. deprecation.
  602. * ``django.contrib.markup`` will be removed following an accelerated
  603. deprecation.
  604. * The compatibility modules ``django.utils.copycompat`` and
  605. ``django.utils.hashcompat`` as well as the functions
  606. ``django.utils.itercompat.all`` and ``django.utils.itercompat.any`` will
  607. be removed. The Python builtin versions should be used instead.
  608. * The ``csrf_response_exempt`` and ``csrf_view_exempt`` decorators will
  609. be removed. Since 1.4 ``csrf_response_exempt`` has been a no-op (it
  610. returns the same function), and ``csrf_view_exempt`` has been a
  611. synonym for ``django.views.decorators.csrf.csrf_exempt``, which should
  612. be used to replace it.
  613. * The ``django.core.cache.backends.memcached.CacheClass`` backend
  614. was split into two in Django 1.3 in order to introduce support for
  615. PyLibMC. The historical ``CacheClass`` will be removed in favor of
  616. ``django.core.cache.backends.memcached.MemcachedCache``.
  617. * The UK-prefixed objects of ``django.contrib.localflavor.uk`` will only
  618. be accessible through their GB-prefixed names (GB is the correct
  619. ISO 3166 code for United Kingdom).
  620. * The ``IGNORABLE_404_STARTS`` and ``IGNORABLE_404_ENDS`` settings have been
  621. superseded by :setting:`IGNORABLE_404_URLS` in the 1.4 release. They will be
  622. removed.
  623. * The form wizard has been refactored to use class-based views with pluggable
  624. backends in 1.4. The previous implementation will be removed.
  625. * Legacy ways of calling
  626. :func:`~django.views.decorators.cache.cache_page` will be removed.
  627. * The backward-compatibility shim to automatically add a debug-false
  628. filter to the ``'mail_admins'`` logging handler will be removed. The
  629. :setting:`LOGGING` setting should include this filter explicitly if
  630. it is desired.
  631. * The builtin truncation functions ``django.utils.text.truncate_words()``
  632. and ``django.utils.text.truncate_html_words()`` will be removed in
  633. favor of the ``django.utils.text.Truncator`` class.
  634. * The ``django.contrib.gis.geoip.GeoIP`` class was moved to
  635. ``django.contrib.gis.geoip`` in 1.4 -- the shortcut in
  636. ``django.contrib.gis.utils`` will be removed.
  637. * ``django.conf.urls.defaults`` will be removed. The functions
  638. ``include()``, ``patterns()``, and ``url()``, plus
  639. :data:`~django.conf.urls.handler404` and :data:`~django.conf.urls.handler500`
  640. are now available through ``django.conf.urls``.
  641. * The functions ``setup_environ()`` and ``execute_manager()`` will be removed
  642. from :mod:`django.core.management`. This also means that the old (pre-1.4)
  643. style of :file:`manage.py` file will no longer work.
  644. * Setting the ``is_safe`` and ``needs_autoescape`` flags as attributes of
  645. template filter functions will no longer be supported.
  646. * The attribute ``HttpRequest.raw_post_data`` was renamed to ``HttpRequest.body``
  647. in 1.4. The backward compatibility will be removed --
  648. ``HttpRequest.raw_post_data`` will no longer work.
  649. * The value for the ``post_url_continue`` parameter in
  650. ``ModelAdmin.response_add()`` will have to be either ``None`` (to redirect
  651. to the newly created object's edit page) or a pre-formatted url. String
  652. formats, such as the previous default ``'../%s/'``, will not be accepted any
  653. more.
  654. .. _deprecation-removed-in-1.5:
  655. 1.5
  656. ---
  657. See the :ref:`Django 1.3 release notes<deprecated-features-1.3>` for more
  658. details on these changes.
  659. * Starting Django without a :setting:`SECRET_KEY` will result in an exception
  660. rather than a ``DeprecationWarning``. (This is accelerated from the usual
  661. deprecation path; see the :doc:`Django 1.4 release notes</releases/1.4>`.)
  662. * The ``mod_python`` request handler will be removed. The ``mod_wsgi``
  663. handler should be used instead.
  664. * The ``template`` attribute on ``django.test.client.Response``
  665. objects returned by the :ref:`test client <test-client>` will be removed.
  666. The :attr:`~django.test.Response.templates` attribute should be
  667. used instead.
  668. * The ``django.test.simple.DjangoTestRunner`` will be removed.
  669. Instead use a ``unittest``-native class. The features of the
  670. ``django.test.simple.DjangoTestRunner`` (including fail-fast and
  671. Ctrl-C test termination) can be provided by :class:`unittest.TextTestRunner`.
  672. * The undocumented function
  673. ``django.contrib.formtools.utils.security_hash`` will be removed,
  674. instead use ``django.contrib.formtools.utils.form_hmac``
  675. * The function-based generic view modules will be removed in favor of their
  676. class-based equivalents, outlined :doc:`here
  677. </topics/class-based-views/index>`.
  678. * The ``django.core.servers.basehttp.AdminMediaHandler`` will be
  679. removed. In its place use
  680. ``django.contrib.staticfiles.handlers.StaticFilesHandler``.
  681. * The template tags library ``adminmedia`` and the template tag ``{%
  682. admin_media_prefix %}`` will be removed in favor of the generic static files
  683. handling. (This is faster than the usual deprecation path; see the
  684. :doc:`Django 1.4 release notes</releases/1.4>`.)
  685. * The ``url`` and ``ssi`` template tags will be modified so that the first
  686. argument to each tag is a template variable, not an implied string. In 1.4,
  687. this behavior is provided by a version of the tag in the ``future`` template
  688. tag library.
  689. * The ``reset`` and ``sqlreset`` management commands will be removed.
  690. * Authentication backends will need to support an inactive user
  691. being passed to all methods dealing with permissions.
  692. The ``supports_inactive_user`` attribute will no longer be checked
  693. and can be removed from custom backends.
  694. * :meth:`~django.contrib.gis.geos.GEOSGeometry.transform` will raise
  695. a :class:`~django.contrib.gis.geos.GEOSException` when called
  696. on a geometry with no SRID value.
  697. * ``django.http.CompatCookie`` will be removed in favor of
  698. ``django.http.SimpleCookie``.
  699. * ``django.core.context_processors.PermWrapper`` and
  700. ``django.core.context_processors.PermLookupDict`` will be removed in
  701. favor of the corresponding
  702. ``django.contrib.auth.context_processors.PermWrapper`` and
  703. ``django.contrib.auth.context_processors.PermLookupDict``, respectively.
  704. * The :setting:`MEDIA_URL` or :setting:`STATIC_URL` settings will be
  705. required to end with a trailing slash to ensure there is a consistent
  706. way to combine paths in templates.
  707. * ``django.db.models.fields.URLField.verify_exists`` will be removed. The
  708. feature was deprecated in 1.3.1 due to intractable security and
  709. performance issues and will follow a slightly accelerated deprecation
  710. timeframe.
  711. * Translations located under the so-called *project path* will be ignored during
  712. the translation building process performed at runtime. The
  713. :setting:`LOCALE_PATHS` setting can be used for the same task by including the
  714. filesystem path to a ``locale`` directory containing non-app-specific
  715. translations in its value.
  716. * The Markup contrib app will no longer support versions of Python-Markdown
  717. library earlier than 2.1. An accelerated timeline was used as this was
  718. a security related deprecation.
  719. * The ``CACHE_BACKEND`` setting will be removed. The cache backend(s) should be
  720. specified in the :setting:`CACHES` setting.
  721. .. _deprecation-removed-in-1.4:
  722. 1.4
  723. ---
  724. See the :ref:`Django 1.2 release notes<deprecated-features-1.2>` for more
  725. details on these changes.
  726. * ``CsrfResponseMiddleware`` and ``CsrfMiddleware`` will be removed. Use
  727. the ``{% csrf_token %}`` template tag inside forms to enable CSRF
  728. protection. ``CsrfViewMiddleware`` remains and is enabled by default.
  729. * The old imports for CSRF functionality (``django.contrib.csrf.*``),
  730. which moved to core in 1.2, will be removed.
  731. * The ``django.contrib.gis.db.backend`` module will be removed in favor
  732. of the specific backends.
  733. * ``SMTPConnection`` will be removed in favor of a generic Email backend API.
  734. * The many to many SQL generation functions on the database backends
  735. will be removed.
  736. * The ability to use the ``DATABASE_*`` family of top-level settings to
  737. define database connections will be removed.
  738. * The ability to use shorthand notation to specify a database backend
  739. (i.e., ``sqlite3`` instead of ``django.db.backends.sqlite3``) will be
  740. removed.
  741. * The ``get_db_prep_save``, ``get_db_prep_value`` and
  742. ``get_db_prep_lookup`` methods will have to support multiple databases.
  743. * The ``Message`` model (in ``django.contrib.auth``), its related
  744. manager in the ``User`` model (``user.message_set``), and the
  745. associated methods (``user.message_set.create()`` and
  746. ``user.get_and_delete_messages()``), will be removed. The
  747. :doc:`messages framework </ref/contrib/messages>` should be used
  748. instead. The related ``messages`` variable returned by the
  749. auth context processor will also be removed. Note that this
  750. means that the admin application will depend on the messages
  751. context processor.
  752. * Authentication backends will need to support the ``obj`` parameter for
  753. permission checking. The ``supports_object_permissions`` attribute
  754. will no longer be checked and can be removed from custom backends.
  755. * Authentication backends will need to support the ``AnonymousUser`` class
  756. being passed to all methods dealing with permissions. The
  757. ``supports_anonymous_user`` variable will no longer be checked and can be
  758. removed from custom backends.
  759. * The ability to specify a callable template loader rather than a
  760. ``Loader`` class will be removed, as will the ``load_template_source``
  761. functions that are included with the built in template loaders for
  762. backwards compatibility.
  763. * ``django.utils.translation.get_date_formats()`` and
  764. ``django.utils.translation.get_partial_date_formats()``. These functions
  765. will be removed; use the locale-aware
  766. ``django.utils.formats.get_format()`` to get the appropriate formats.
  767. * In ``django.forms.fields``, the constants: ``DEFAULT_DATE_INPUT_FORMATS``,
  768. ``DEFAULT_TIME_INPUT_FORMATS`` and
  769. ``DEFAULT_DATETIME_INPUT_FORMATS`` will be removed. Use
  770. ``django.utils.formats.get_format()`` to get the appropriate
  771. formats.
  772. * The ability to use a function-based test runner will be removed,
  773. along with the ``django.test.simple.run_tests()`` test runner.
  774. * The ``views.feed()`` view and ``feeds.Feed`` class in
  775. ``django.contrib.syndication`` will be removed. The class-based view
  776. ``views.Feed`` should be used instead.
  777. * ``django.core.context_processors.auth``. This release will
  778. remove the old method in favor of the new method in
  779. ``django.contrib.auth.context_processors.auth``.
  780. * The ``postgresql`` database backend will be removed, use the
  781. ``postgresql_psycopg2`` backend instead.
  782. * The ``no`` language code will be removed and has been replaced by the
  783. ``nb`` language code.
  784. * Authentication backends will need to define the boolean attribute
  785. ``supports_inactive_user`` until version 1.5 when it will be assumed that
  786. all backends will handle inactive users.
  787. * ``django.db.models.fields.XMLField`` will be removed. This was
  788. deprecated as part of the 1.3 release. An accelerated deprecation
  789. schedule has been used because the field hasn't performed any role
  790. beyond that of a simple ``TextField`` since the removal of ``oldforms``.
  791. All uses of ``XMLField`` can be replaced with ``TextField``.
  792. * The undocumented ``mixin`` parameter to the ``open()`` method of
  793. ``django.core.files.storage.Storage`` (and subclasses) will be removed.
  794. .. _deprecation-removed-in-1.3:
  795. 1.3
  796. ---
  797. See the :ref:`Django 1.1 release notes<deprecated-features-1.1>` for more
  798. details on these changes.
  799. * ``AdminSite.root()``. This method of hooking up the admin URLs will be
  800. removed in favor of including ``admin.site.urls``.
  801. * Authentication backends need to define the boolean attributes
  802. ``supports_object_permissions`` and ``supports_anonymous_user`` until
  803. version 1.4, at which point it will be assumed that all backends will
  804. support these options.