From 31c13a99bb9ebdaf12ccab4e880c5da930d86e79 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 16 Jul 2013 09:10:04 -0400 Subject: Fixed #14300 -- Fixed initial SQL location if models is a package. Thanks al_the_x for the report and fheinz for the draft patch. --- docs/internals/deprecation.txt | 4 ++++ docs/releases/1.7.txt | 9 +++++++++ 2 files changed, 13 insertions(+) (limited to 'docs') 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` 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 +` 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. -- cgit v1.3