summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdam Chainz <adam@adamj.eu>2016-11-23 22:04:10 +0000
committerTim Graham <timograham@gmail.com>2016-11-25 13:24:11 -0500
commit6252fd6314f66d2d303cc47c791ffefd27169b42 (patch)
tree008414bc12e1c56962967bc8b6b3e51e3eeb9651 /docs
parentcb7bbf97a74fa7800865e3615f196ad65dc4f281 (diff)
Fixed #27532 -- Deprecated Model._meta.has_auto_field
Diffstat (limited to 'docs')
-rw-r--r--docs/internals/deprecation.txt2
-rw-r--r--docs/releases/1.11.txt3
2 files changed, 5 insertions, 0 deletions
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt
index 53d3ef4e9c..29f4479c5a 100644
--- a/docs/internals/deprecation.txt
+++ b/docs/internals/deprecation.txt
@@ -46,6 +46,8 @@ details on these changes.
* The ``USE_ETAGS`` setting will be removed. ``CommonMiddleware`` and
``django.utils.cache.patch_response_headers()`` will no longer set ETags.
+* The ``Model._meta.has_auto_field`` attribute will be removed.
+
.. _deprecation-removed-in-2.0:
2.0
diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt
index c8c64ab9c9..1b301078f1 100644
--- a/docs/releases/1.11.txt
+++ b/docs/releases/1.11.txt
@@ -707,3 +707,6 @@ Miscellaneous
``ETag`` header to responses regardless of the setting. ``CommonMiddleware``
and ``django.utils.cache.patch_response_headers()`` will no longer set ETags
when the deprecation ends.
+
+* ``Model._meta.has_auto_field`` is deprecated in favor of checking if
+ ``Model._meta.auto_field is not None``.