diff options
| author | Tim Graham <timograham@gmail.com> | 2014-08-19 06:14:14 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-08-19 06:14:14 -0400 |
| commit | 15cafaa5657bae31df6e515b425dd353b7352aa3 (patch) | |
| tree | 73bbabd310a40574d64d353e0c9dbc2d5e6650e1 /docs | |
| parent | 9432f1e750eca440e19903ee1b1cef0679f6f98b (diff) | |
Fixed #5726 -- Documented that inspectdb doesn't detect defaults.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/django-admin.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 5188c10dde..10897f2104 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -366,6 +366,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 |
