mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #22660: Doc'd you can't have unmigrated apps depend on migrated
This commit is contained in:
parent
edd9f8a7b2
commit
24afb1d7a7
3 changed files with 31 additions and 0 deletions
|
@ -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
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue