django1/django/db
Aymeric Augustin b9c619abc1 Prevented makemigrations from writing in sys.path[0].
There's no reason to assume that sys.path[0] is an appropriate location
for generating code. Specifically that doesn't work with extend_sys_path
which puts the additional directories at the end of sys.path.

In order to create a new migrations module, instead of using an
arbitrary entry from sys.path, import as much as possible from the path
to the module, then create missing submodules from there.

Without this change, the tests introduced in the following commit fail,
which seems sufficient to prevent regressions for such a refactoring.
2015-02-23 19:55:10 +01:00
..
backends Fixed signature of BaseDatabaseOperations.date_interval_sql() and document the change. 2015-02-22 23:23:16 -05:00
migrations Prevented makemigrations from writing in sys.path[0]. 2015-02-23 19:55:10 +01:00
models Fixed #24381 -- removed ForeignObjectRel opts and to_opts 2015-02-23 07:24:43 -05:00
__init__.py Fixed #21430 -- Added a RuntimeWarning when unpickling Models and QuerySets from a different Django version. 2014-06-11 10:03:34 -04:00
transaction.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
utils.py Fixed #24351, #24346 -- Changed the signature of allow_migrate(). 2015-02-20 21:34:09 +07:00