Fixed #22660: Doc'd you can't have unmigrated apps depend on migrated

This commit is contained in:
Andrew Godwin 2014-06-15 11:46:56 -07:00
parent edd9f8a7b2
commit 24afb1d7a7
3 changed files with 31 additions and 0 deletions

View file

@ -1062,6 +1062,12 @@ avoid the overhead of an index if you are creating a foreign key for
consistency rather than joins, or if you will be creating an alternative index
like a partial or multiple column index.
.. warning::
It is not recommended to have a ``ForeignKey`` from an app without migrations
to an app with migrations. See the :ref:`dependencies documentation
<unmigrated-dependencies>` for more details.
Database Representation
~~~~~~~~~~~~~~~~~~~~~~~
@ -1261,6 +1267,12 @@ which the model is related, which works exactly the same as it does for
Related objects can be added, removed, or created with the field's
:class:`~django.db.models.fields.related.RelatedManager`.
.. warning::
It is not recommended to have a ``ManyToManyField`` from an app without migrations
to an app with migrations. See the :ref:`dependencies documentation
<unmigrated-dependencies>` for more details.
Database Representation
~~~~~~~~~~~~~~~~~~~~~~~