summaryrefslogtreecommitdiff
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:34 -0400
commit75d7bb8d4313f83a832a65cc5e9b17b8ccf97fd1 (patch)
tree3ce440859bf1d1ea8759cad6c44e97bcb947bbf6
parent955fdc8cdb0c1a98741687513980b64de8f20c75 (diff)
[1.6.x] Fixed #5726 -- Documented that inspectdb doesn't detect defaults.
Backport of 15cafaa565 from master
-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 fe530598cd..06df6e7d65 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -314,6 +314,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
and deletion. If you do want to allow Django to manage the table's lifecycle,