summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Eames <github@naddiseo.ca>2014-08-27 10:37:33 -0600
committerTim Graham <timograham@gmail.com>2014-08-27 17:26:08 -0400
commit4dd5c8581d89a9f8e1e34e14c682584e562bf8b1 (patch)
tree812af143e7518ba1bb6c27bcf92096ecf238101b
parentf0d3dd4f04efa49e0b58da4847cb89770b59d4a8 (diff)
Fixed #23349 -- Clarified details about RunPython's apps argument.
-rw-r--r--docs/ref/migration-operations.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/ref/migration-operations.txt b/docs/ref/migration-operations.txt
index 171ddd8ee7..a2da17f1bf 100644
--- a/docs/ref/migration-operations.txt
+++ b/docs/ref/migration-operations.txt
@@ -241,10 +241,12 @@ ORM and/or python code for.
If you're upgrading from South, this is basically the South pattern as an
operation - one or two methods for forwards and backwards, with an ORM and
-schema operations available. You should be able to translate the ``orm.Model``
-or ``orm["appname", "Model"]`` references from South directly into
-``apps.get_model("appname", "Model")`` references here and leave most of the
-rest of the code unchanged for data migrations.
+schema operations available. Most of the time, you should be able to translate
+the ``orm.Model`` or ``orm["appname", "Model"]`` references from South directly
+into ``apps.get_model("appname", "Model")`` references here and leave most of
+the rest of the code unchanged for data migrations. However, ``apps`` will only
+have references to models in the current app unless migrations in other apps
+are added to the migration's dependencies.
Much like :class:`RunSQL`, ensure that if you change schema inside here you're
either doing it outside the scope of the Django model system (e.g. triggers)