diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/internals/deprecation.txt | 4 | ||||
| -rw-r--r-- | docs/releases/1.7.txt | 9 |
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. |
