summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-07-16 09:10:04 -0400
committerTim Graham <timograham@gmail.com>2013-07-24 06:56:33 -0400
commit31c13a99bb9ebdaf12ccab4e880c5da930d86e79 (patch)
treed7b2fcf5cbc526bf63ffe1a3b521ccc0e3f1d39c /docs
parentc928725b933ff479c04e8a7fb74c4dc2ba138aa7 (diff)
Fixed #14300 -- Fixed initial SQL location if models is a package.
Thanks al_the_x for the report and fheinz for the draft patch.
Diffstat (limited to 'docs')
-rw-r--r--docs/internals/deprecation.txt4
-rw-r--r--docs/releases/1.7.txt9
2 files changed, 13 insertions, 0 deletions
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt
index b0f5566cb3..7f93e1dc58 100644
--- a/docs/internals/deprecation.txt
+++ b/docs/internals/deprecation.txt
@@ -414,6 +414,10 @@ these changes.
* ``django.utils.unittest`` will be removed.
+* If models are organized in a package, Django will no longer look for
+ :ref:`initial SQL data<initial-sql>` in ``myapp/models/sql/``. Move your
+ custom SQL files to ``myapp/sql/``.
+
2.0
---
diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt
index bec24c94dc..bec5aaa12a 100644
--- a/docs/releases/1.7.txt
+++ b/docs/releases/1.7.txt
@@ -116,3 +116,12 @@ on all Python versions. Since ``unittest2`` became the standard library's
:mod:`unittest` module in Python 2.7, and Django 1.7 drops support for older
Python versions, this module isn't useful anymore. It has been deprecated. Use
:mod:`unittest` instead.
+
+Custom SQL location for models package
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Previously, if models were organized in a package (``myapp/models/``) rather
+than simply ``myapp/models.py``, Django would look for :ref:`initial SQL data
+<initial-sql>` in ``myapp/models/sql/``. This bug has been fixed so that Django
+will search ``myapp/sql/`` as documented. The old location will continue to
+work until Django 1.9.