summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-08-19 06:14:14 -0400
committerTim Graham <timograham@gmail.com>2014-08-19 06:15:28 -0400
commitd6c6181f9ecf90be7d298c670ce23c0327417bb7 (patch)
tree54e774d4c791a8ac1a003ebf6515f959861cea87 /docs
parent5f54752b9dd243ffcb8cb3cb8dc46f8d3666d8bd (diff)
[1.7.x] Fixed #5726 -- Documented that inspectdb doesn't detect defaults.
Backport of 15cafaa565 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/django-admin.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index 7d464d92d4..a1ac8114e5 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -354,6 +354,11 @@ needed.
``inspectdb`` works with PostgreSQL, MySQL and SQLite. Foreign-key detection
only works in PostgreSQL and with certain types of MySQL tables.
+Django doesn't create database defaults when a
+:attr:`~django.db.models.Field.default` is specified on a model field.
+Similarly, database defaults aren't translated to model field defaults or
+detected in any fashion by ``inspectdb``.
+
By default, ``inspectdb`` creates unmanaged models. That is, ``managed = False``
in the model's ``Meta`` class tells Django not to manage each table's creation,
modification, and deletion. If you do want to allow Django to manage the