summaryrefslogtreecommitdiff
path: root/docs/ref/models/fields.txt
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2014-06-15 11:46:56 -0700
committerAndrew Godwin <andrew@aeracode.org>2014-06-15 11:47:57 -0700
commita067c61b94926f408e151ff5b4e0ce0d3b775183 (patch)
tree071f372382ce0136accd0ce0cc7be8d4dcdc1bac /docs/ref/models/fields.txt
parentc903543127e642e619213cdefda9cea15df09c16 (diff)
[1.7.x] Fixed #22660: Doc'd you can't have unmigrated apps depend on migrated
Diffstat (limited to 'docs/ref/models/fields.txt')
-rw-r--r--docs/ref/models/fields.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index b7acc6247a..52f02e1b29 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -1063,6 +1063,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
~~~~~~~~~~~~~~~~~~~~~~~
@@ -1266,6 +1272,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
~~~~~~~~~~~~~~~~~~~~~~~