- 24 Şub, 2015 2 kayıt (commit)
-
-
Preston Timmons yazdı
-
Nik Nyby yazdı
-
- 23 Şub, 2015 12 kayıt (commit)
-
-
Aymeric Augustin yazdı
This is preferrable to writing in the current working directory because it eliminates the risk to leak unwanted files, which can result in very weird test failures. Also this will help if we ever try to run these tests concurrently.
-
Aymeric Augustin yazdı
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.
-
Aymeric Augustin yazdı
-
Aymeric Augustin yazdı
Specifically stopped using the dir argument.
-
Aymeric Augustin yazdı
Dropped the DJANGO_TEST_TEMP_DIR environment variable. Before this change, proper removal depended on the developer passing dir=os.environ['DJANGO_TEST_TMP_DIR'] to tempfile functions.
-
Kenneth Kam yazdı
-
Tim Graham yazdı
-
Ian Lee yazdı
The website only renders code blocks at 96 chars, and therefore long code lines get wrapped. Manually breaking the lines prevents the wrapping from occurring.
-
Emin Mastizada yazdı
-
Anssi Kääriäinen yazdı
These cached properies were causing problems with pickling, and in addition they were confusingly defined: field.rel.model._meta was not the same as field.rel.opts. Instead users should use field.rel.related_model._meta inplace of field.rel.opts, and field.rel.to._meta in place of field.rel.to_opts.
-
Marten Kenbeek yazdı
Switched from an adjancency list and uncached, iterative depth-first search to a Node-based design with direct parent/child links and a cached, recursive depth-first search. With this change, calculating a migration plan for a large graph takes several seconds instead of several hours. Marked test `migrations.test_graph.GraphTests.test_dfs` as an expected failure due to reaching the maximum recursion depth.
-
Michael Manfre yazdı
-
- 22 Şub, 2015 7 kayıt (commit)
-
-
Aymeric Augustin yazdı
Refs #24389.
-
Aymeric Augustin yazdı
The stated reason for its introduction in d18d37ce no longer applies since Django's code repository was switched from Subversion to git. Furthermore it never had any effect because shutil.rmtree ignores its onerror argument when ignore_errors is True. The reason for its use in template management commands is unclear.
-
Tim Graham yazdı
-
Tim Graham yazdı
-
Tim Graham yazdı
-
Aymeric Augustin yazdı
Thanks uranusjr for the report and analysis.
-
Sean Wang yazdı
-
- 21 Şub, 2015 7 kayıt (commit)
-
-
Michael Angeletti yazdı
-
Aymeric Augustin yazdı
-
Aymeric Augustin yazdı
In addition to simplifying the code, this reduces the number of writes.
-
Aymeric Augustin yazdı
This makes the staticfiles tests 2.5 times faster.
-
Aymeric Augustin yazdı
It should have been removed when the ADMIN_MEDIA_PREFIX setting was deprecated.
-
Loic Bistuer yazdı
Refs #24351.
-
Don Kirkby yazdı
-
- 20 Şub, 2015 12 kayıt (commit)
-
-
foresmac yazdı
-
Simon Charette yazdı
-
Aymeric Augustin yazdı
Explicit is better than implicit.
-
Frank Wiles yazdı
-
Anssi Kääriäinen yazdı
-
Loic Bistuer yazdı
The new signature enables better support for routing RunPython and RunSQL operations, especially w.r.t. reusable and third-party apps. This commit also takes advantage of the deprecation cycle for the old signature to remove the backward incompatibility introduced in #22583; RunPython and RunSQL won't call allow_migrate() when when the router has the old signature. Thanks Aymeric Augustin and Tim Graham for helping shape up the patch. Refs 22583.
-
Tim Graham yazdı
-
Tim Graham yazdı
-
Marc Tamlyn yazdı
Thanks to DavidMuller for the report.
-
Marc Tamlyn yazdı
As suggested by Anssi. This has the slightly strange side effect of passing the expression to Expression.convert_value has the expression passed back to it, but it allows more complex patterns of expressions.
-
Marc Tamlyn yazdı
Joint effort between myself, Josh, Anssi and Shai.
-
Tim Graham yazdı
-