- 25 Şub, 2015 4 kayıt (commit)
-
-
Tim Graham yazdı
-
Tim Graham yazdı
-
Tim Graham yazdı
-
Michael Angeletti yazdı
-
- 24 Şub, 2015 13 kayıt (commit)
-
-
Tim Graham yazdı
This reverts commit 0af3822d. It's obsoleted by refs #24395.
-
Stanislas Guerra yazdı
-
Preston Timmons yazdı
-
Preston Timmons yazdı
-
Preston Timmons yazdı
-
Preston Timmons yazdı
-
Preston Timmons yazdı
-
Preston Timmons yazdı
-
Preston Timmons yazdı
-
Preston Timmons yazdı
-
Preston Timmons yazdı
-
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 4 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.
-