summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-02-23Normalized usage of the tempfile module.Aymeric Augustin
Specifically stopped using the dir argument.
2015-02-23Guaranteed removal of temporary files during tests.Aymeric Augustin
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.
2015-02-23Fixed #23762 -- clarified CACHE_MIDDLEWARE_ANONYMOUS_ONLY deprecation in docsKenneth Kam
2015-02-23Fixed #24377 -- Fixed model inline formsets with primary key's that have ↵Tim Graham
defaults.
2015-02-23Broke long lines in code examples.Ian Lee
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.
2015-02-23Added formats for the Azerbaijani locale.Emin Mastizada
2015-02-23Fixed #24381 -- removed ForeignObjectRel opts and to_optsAnssi Kääriäinen
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.
2015-02-23Fixed #24366 -- Optimized traversal of large migration dependency graphs.Marten Kenbeek
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.
2015-02-22Fixed signature of BaseDatabaseOperations.date_interval_sql() and document ↵Michael Manfre
the change.
2015-02-22Fixed a few uses of Template that relied on a default engine.Aymeric Augustin
Refs #24389.
2015-02-22Removed rmtree_errorhandler.Aymeric Augustin
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.
2015-02-22Updated tutorial to use explicit relative imports.Tim Graham
2015-02-22Corrected sqlmigrate output in tutorial 1.Tim Graham
2015-02-22Fixed #24371 -- Cautioned against trying to switch databases.Tim Graham
2015-02-22Fixed #24389 -- Isolated the CSRF view from the TEMPLATES setting.Aymeric Augustin
Thanks uranusjr for the report and analysis.
2015-02-22Fixed #24358 -- Corrected code-block directives for console sessions.Sean Wang
2015-02-21Fixed #24376 -- added verbose_name arg to UUIDFieldMichael Angeletti
2015-02-21Removed obsolete reference to media directory.Aymeric Augustin
2015-02-21Removed workaround for SVN limitations.Aymeric Augustin
In addition to simplifying the code, this reduces the number of writes.
2015-02-21Avoided collecting admin static files in tests.Aymeric Augustin
This makes the staticfiles tests 2.5 times faster.
2015-02-21Removed TestServeAdminMedia.Aymeric Augustin
It should have been removed when the ADMIN_MEDIA_PREFIX setting was deprecated.
2015-02-21Fixed allow_migrate signature in one of the tests.Loic Bistuer
Refs #24351.
2015-02-20Fixed typo in django/db/models/fields/files.py comment.Don Kirkby
2015-02-20Fixed #24341 -- Added specific error messages to RangeField subclassesforesmac
2015-02-20Removed reference to iteration count in the PBKDF2 hasher docstring.Simon Charette
2015-02-20Removed a non-obvious side-effect of assigning Context.template.Aymeric Augustin
Explicit is better than implicit.
2015-02-20Fixed PBKDF2PasswordHasher comments to reflect reality.Frank Wiles
2015-02-20Fixed #24328 -- cleaned up Options._get_fields() implementationAnssi Kääriäinen
2015-02-20Fixed #24351, #24346 -- Changed the signature of allow_migrate().Loic Bistuer
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.
2015-02-20Fixed typo in path to is_safe_url()Tim Graham
2015-02-20Fixed typo in docs/internals/contributing/triaging-tickets.txtTim Graham
2015-02-20Fixed #24373 -- Added run_validators to ArrayField.Marc Tamlyn
Thanks to DavidMuller for the report.
2015-02-20Update converters to take a consistent set of parameters.Marc Tamlyn
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.
2015-02-20Fixed #24343 -- Ensure db converters are used for foreign keys.Marc Tamlyn
Joint effort between myself, Josh, Anssi and Shai.
2015-02-19Simplified and updated committing code guidelines.Tim Graham
2015-02-19Fixed #23811 -- Added a guide for using git bisect.Tim Graham
2015-02-19Fixed typo in error message in the test.Tim Graham
2015-02-19Fixed typo in django.core.servers.basehttp message.Alex Vidal
2015-02-19Set context.template instead of context.engine while rendering.Aymeric Augustin
This opens more possibilities, like accessing context.template.origin. It also follows the chain of objects instead of following a shortcut.
2015-02-19Fixed #20889 -- Prevented BadHeaderError when Python inserts newlineClaude Paroz
Workaround for http://bugs.python.org/issue20747. In some corner cases, Python 2 inserts a newline in a header value despite `maxlinelen` passed in Header constructor. Thanks Tim Graham for the review.
2015-02-19Fixed #24307: Avoided redundant column nullability modifications on OracleShai Berger
Thanks Joris Benschop for the report, and Tim Graham for the tests.
2015-02-18Fixed #24362: Made test run each migration operation in its own schema editorShai Berger
Thanks Tim Graham for pointing out the fix.
2015-02-18Fixed #24291 - Fixed migration ModelState generation with unused swappable ↵Marten Kenbeek
models Swapped out models don't have a _default_manager unless they have explicitly defined managers. ModelState.from_model() now accounts for this case and uses an empty list for managers if no explicit managers are defined and a model is swapped out.
2015-02-18Removed unused foreign_key_re variables in MySQL/Oracle DB backendsAdam Chainz
2015-02-18Refs #24324 -- Skipped fixtures_regress tests that fail on Python 2 on a ↵Tim Graham
non-ASCII path.
2015-02-18Refs #24324 -- Fixed crash in {% debug %} tag on Python 2.Tim Graham
If Django is installed in a path that contains non-ASCII characters, the tag failed with UnicodeDecodeError.
2015-02-17Refs #24324 -- Fixed Python 2 test failures when path to Django source ↵Tim Graham
contains non-ASCII characters.
2015-02-17Refs #24324 -- Fixed UnicodeDecodeError in MigrationWriter on Python 2.Tim Graham
2015-02-17Refs #24324 -- Fixed UnicodeDecodeError in template_backends testsTim Graham
The message for the SuspiciousFileOperation exception needs to be a unicode string.
2015-02-17Fixed "environment can only contain strings" in model_regress test on Windows.Tim Graham