Ticket #5726: 5726.diff

File 5726.diff, 813 bytes (added by Tim Graham, 10 years ago)
  • docs/ref/django-admin.txt

    diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
    index 5188c10..10897f2 100644
    a b needed.  
    366366``inspectdb`` works with PostgreSQL, MySQL and SQLite. Foreign-key detection
    367367only works in PostgreSQL and with certain types of MySQL tables.
    368368
     369Django doesn't create database defaults when a
     370:attr:`~django.db.models.Field.default` is specified on a model field.
     371Similarly, database defaults aren't translated to model field defaults or
     372detected in any fashion by ``inspectdb``.
     373
    369374By default, ``inspectdb`` creates unmanaged models. That is, ``managed = False``
    370375in the model's ``Meta`` class tells Django not to manage each table's creation,
    371376modification, and deletion. If you do want to allow Django to manage the
Back to Top