summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-11-23Deprecated dirs argument to override TEMPLATE_DIRS.Aymeric Augustin
Cancels 2f0566fa. Refs #4278.
2014-11-22Revert "Fixed #23892 -- Made deconstructible classes forwards compatible"Carl Meyer
This reverts commit f36151ed169813f2873e13ca9de616cfa4095321. Adding kwargs to deconstructed objects does not achieve useful forward-compatibility in general, since additional arguments are silently dropped rather than having their intended effect. In fact, it can make the failure more difficult to diagnose. Thanks Shai Berger for discussion.
2014-11-22Fixed #23892 -- Made deconstructible classes forwards compatibleCarl Meyer
2014-11-22Fix another flake8 warning.Carl Meyer
I don't agree with flake8 here about the right indentation, but as long as we're using it, we should stick to it. I don't want to disable its hanging indent checks just because of this case.
2014-11-22Silenced a flake8 warning.Berker Peksag
../tests/shortcuts/views.py:45:1: E302 expected 2 blank lines, found 1
2014-11-22Avoided rewrapping Contexts in render_to_response.Aymeric Augustin
This change preserves backwards-compatibility for a very common misuse of render_to_response which even occurred in the official documentation. It fixes that misuse wherever it happened in the code base and docs. Context.__init__ is documented as accepting a dict and nothing else. Since Context is dict-like, Context(Context({})) could work to some extent. However, things get complicated with RequestContext and that gets in the way of refactoring the template engine. This is the real rationale for this change.
2014-11-22Moved tests for render shortcuts to their own app.Aymeric Augustin
2014-11-22Fixed #23887 -- Returned Bad Request for multipart parsing failsClaude Paroz
Thanks Antti Häyrynen and Tim Graham for the report, and Aymeric Augustin for the review.
2014-11-22Updated an old note about GEOSGeometry.transformClaude Paroz
2014-11-21Fixed #23889 -- Added more usage of quote_name_unless_alias() to avoid ↵Collin Anderson
deprecation warnings.
2014-11-21Fixed #23862 -- Made ManyToManyRel.get_related_field() respect to_field.Simon Charette
2014-11-21Fixed typo in forms/models.py comment.Simon Charette
2014-11-21Fixed #23778 -- Added a doc section on using the Django runner for reusable ↵Stanislas Guerra
apps.
2014-11-21Fixed #21753 -- Raised exception when both `form_class` and `fields` are ↵Berker Peksag
specified.
2014-11-21Fixed #23865 -- documented how to assign errors to a field in Model.clean()Alasdair Nicol
Also added a unit test wit the simpler syntax which we have documented, where the dictionary values are strings.
2014-11-21Fixed typo in docs/internals/release-process.txt.Tom V
2014-11-21Fixed #23863 -- Made runtests accept the keepdb option.Simon Charette
refs #20550
2014-11-21Fixed #23794 -- Fixed migrations crash when removing a field that's part of ↵Andrzej Pragacz
index/unique_together.
2014-11-21Added a test for model pre/post_init signals.Jay
2014-11-21Corrected Permission.max_length in docs; refs #8162.Sergey Fedoseev
2014-11-21Fixed #23883 -- Stopped flatatt modifying its argumentTim Heap
2014-11-20Added a comment for test of refs #20278.Anssi Kääriäinen
2014-11-20Fixed duplicate index error on Oracle; refs #23859.Markus Holtermann
Refers to regression introduced in 7b4a994599b75a07cb07d1e0cc26b3bbf25ab7a6
2014-11-20Removed reduce() usage in makemigrations; refs #23796.Brad Walker
A lambda all_items_equal() replaced a reduce() that was broken for potential 3+-way merges. A reduce(operator.eq, ...) accumulates bools and can't generically check equality of all items in a sequence: >>> bool(reduce(operator.eq, [('migrations', '0001_initial')] * 3)) False The code now counts the number of common ancestors to calculate slice offsets for the branches. Each branch shares the same number of common ancestors. The common_ancestor for loop statement had incomplete branch coverage.
2014-11-20Reduced reduce() usage; refs #23796.Brad Walker
django.core.exceptions.ValidationError.messages() and django.db.backends.schema.BaseDatabaseSchemaEditor._alter_field(): Replaced reduce(operator.add, ...) w/uncoupled, explicit sum()
2014-11-20Added test for ValidationError.messagesBrad Walker
2014-11-20Fixed #23605 -- Fixed nested subquery regressionAnssi Kääriäinen
Added relabeled_clone() method to sql.Query to fix the problem. It manifested itself in rare cases where at least double nested subquery's filter condition might target non-existing alias. Thanks to Trac alias ris for reporting the problem.
2014-11-20Fixed #23844 -- Used topological sort for migration operation dependency ↵Patryk Zawadzki
resolution. This removes the concept of equality between operations to guarantee compatilibity with Python 3. Python 3 requires equality to result in identical object hashes. It's impossible to implement a unique hash that preserves equality as operations such as field creation depend on being able to accept arbitrary dicts that cannot be hashed reliably. Thanks Klaas van Schelven for the original patch in 13d613f80011852404198dfafd1f09c0c0ea42e6.
2014-11-20Added some directories on Jenkins to flake8 exclude.Tim Graham
2014-11-20Added missing backticks to form validation docsAlasdair Nicol
2014-11-20Added AutoField introspection for PostgreSQLClaude Paroz
Refs #23748.
2014-11-20Added AutoField introspection for MySQLClaude Paroz
Refs #23748.
2014-11-20Fixed #23817 -- Updated docs on QuerySet evaluationMichal Petrucha
Removed inaccurate info about partial evaluation after refs #18702. Added information on modifying sliced QuerySets; refs #22503.
2014-11-20Fixed #12098 -- Simplified HttpRequest.__repr__().Berker Peksag
2014-11-20Fixed #23876 -- Removed dead code in SQLAggregateCompiler.Carl Meyer
2014-11-19Added another migration-executor test to avoid regressions.Carl Meyer
2014-11-19Fixed #23873 -- Improved GIS error message when GEOS is not installed.Carl Meyer
Thanks Claude for writing the patch.
2014-11-19Fixed #23410 -- Avoided unnecessary rollbacks in related apps when migrating ↵Carl Meyer
backwards.
2014-11-19Fixed #21794 -- Removed deprecation warning for abstract models outside an app.Carl Meyer
2014-11-19Fixed #23872 -- Removed sensitivity of migrations tests to CWD.Carl Meyer
2014-11-19Fixed GIS tests to again skip without error when GEOS is not installed.Carl Meyer
2014-11-19Fixed #23871 -- Removed promotion of MySQL warnings to errors in DEBUG mode.Tim Graham
2014-11-19Replaced caching of a property with @cached_property.Aymeric Augustin
2014-11-19Simplified caching of supported languages.Aymeric Augustin
2014-11-19Simplified caching of the default exception reporter filter.Aymeric Augustin
Also simplified the logic under the assumption that a false-ish object won't have an exception_reporter_filter attribute.
2014-11-19Removed usage of a global variable.Aymeric Augustin
2014-11-19Simplified caching of template context processors.Aymeric Augustin
2014-11-19Simplified caching of templatetags modules.Aymeric Augustin
2014-11-19Simplified caching of get_default_timezone().Aymeric Augustin
2014-11-19Simplified caching of password hashers.Aymeric Augustin
load_hashers cached its result regardless of its password_hashers argument which required fragile cache invalidation. Remove that argument in favor of @override_settings and triggering cache invalidation with a signal.