summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-11-24Fixed #23543 -- Added docs on testing management command output.Danilo Bargen
2014-11-24Added deprecation of template dirs parameter to timeline.Tim Graham
2014-11-24Fixed spelling in docs/ref/django-admin.txt.Tim Graham
2014-11-24Moved release note for refs #21281 from "deprecation" to "backwards ↵Tim Graham
incompatible".
2014-11-24Simplified get_version() in django/__init__.pyTim Graham
Thanks Luke Plant for the report.
2014-11-24Removed unused variable django.http.request.absolute_http_url_reMatt Robenolt
2014-11-24Better migration docs for get_query_set -> get_querysetLuke Plant
This way they won't need to fix things again when get_query_set disappears
2014-11-23Fixed #23900 -- Added missing imports in code example.Kevin Ndung'u
The Preventing header injection example included classes that are not imported. Thanks to Collin Anderson and Berker Peksağ for the reviews.
2014-11-23Removed direct references to template-related settings.Aymeric Augustin
2014-11-23Encapsulated TEMPLATE_DEBUG in Engine.Aymeric Augustin
2014-11-23Encapsulated TEMPLATE_STRING_IF_INVALID in Engine.Aymeric Augustin
2014-11-23Encapsulated TEMPLATE_CONTEXT_PROCESSORS in Engine.Aymeric Augustin
Since RequestContext doesn't know its Engine until it's passed to Template.render() -- and cannot without breaking a widely used public API -- an elaborate hack is required to apply context processors.
2014-11-23Encapsulated ALLOWED_INCLUDE_ROOTS in Engine.Aymeric Augustin
2014-11-23Moved make_origin into the Engine class.Aymeric Augustin
2014-11-23Move compile_string into the Engine class.Aymeric Augustin
2014-11-23Added to each Context a reference to the Engine.Aymeric Augustin
It's only available during the rendering.
2014-11-23Removed dependency of template loaders on Django settings.Aymeric Augustin
2014-11-23Moved template loaders management in Engine.Aymeric Augustin
Passed the engine instance to loaders. This is a prerequisite for looking up configuration on the engine instance instead of global settings. This is backwards incompatible for custom template loaders that override __init__. However the documentation doesn't talk about __init__ and the way to pass arguments to custom template loaders isn't specified. I'm considering it a private API.
2014-11-23Removed unused API get_template_loaders.Aymeric Augustin
It was introduced in a recent refactoring so this isn't an issue. Then renamed _get_template_loaders to get_template_loaders.
2014-11-23Introduced a template engine class.Aymeric Augustin
Moved Django templates loading infrastructure there.
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