Skip to content

Commit

Permalink
[1.7.x] Fixed #5726 -- Documented that inspectdb doesn't detect defau…
Browse files Browse the repository at this point in the history
…lts.

Backport of 15cafaa from master
  • Loading branch information
timgraham committed Aug 19, 2014
1 parent 5f54752 commit d6c6181
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/ref/django-admin.txt
Expand Up @@ -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
Expand Down

0 comments on commit d6c6181

Please sign in to comment.