| Age | Commit message (Collapse) | Author |
|
This change makes it possible to configure several Django template
engines in a project and still use the admin. On the flip side the
check is silently skipped when no Django template engine is configured.
|
|
|
|
|
|
A deprecation path is required because the return type of
django.template.loader.get_template changed during the
multiple template engines refactor.
test_csrf_token_in_404 was incorrect: it tested the case when the
hardcoded template was rendered, and that template doesn't depend on the
CSRF token. This commit makes it test the case when a custom template is
rendered.
|
|
Changed import style to avoid confusion between Django's and Jinja2's
APIs.
|
|
Thanks Thomas Güttler for the report and the initial patch, and
Tim Graham for the review.
|
|
a list/tuple.
|
|
Thanks Tim Graham for the review.
|
|
|
|
migration state
Thanks Collin Anderson for the input when creating the patch and Tim Graham for the review.
|
|
Refs #24117
|
|
|
|
Added a --debug-sql option for tests and runtests.py which outputs the
SQL logger for failing tests. When combined with --verbosity=2, it also
outputs the SQL for passing tests.
Thanks to Berker, Tim, Markus, Shai, Josh and Anssi for review and
discussion.
|
|
It was mainly for MySQL on Python 3, but now the current
recommended MySQL driver for Python 3 (mysqlclient) does support
binary fields, it is unneeded. Refs #20377.
|
|
|
|
mistake.
|
|
|
|
|
|
Thanks to Collin Anderson for the review and suggestions and Tim for the
final review.
|
|
Added support for PostgreSQL range types to contrib.postgres.
- 5 new model fields
- 4 new form fields
- New validators
- Uses psycopg2's range type implementation in python
|
|
These refactorings making overriding some text based lookup names on
other fields (specifically `contains`) much cleaner. It also removes a
bunch of duplication in the contrib.postgres lookups.
|
|
|
|
|
|
Thanks Peter Schmidt for the report and the initial patch.
Thanks to Oktay Sancak for writing the original failing test and
Alvin Savoy for supporting contributing back to the community.
|
|
|
|
|
|
Thanks Markus Holtermann and Tim Graham for the review.
|
|
Thanks Loïc Bistuer and Tim Graham for the discussion and review.
|
|
Refactored compiler SELECT, GROUP BY and ORDER BY generation.
While there, also refactored select_related() implementation
(get_cached_row() and get_klass_info() are now gone!).
Made get_db_converters() method work on expressions instead of
internal_type. This allows the backend converters to target
specific expressions if need be.
Added query.context, this can be used to set per-query state.
Also changed the signature of database converters. They now accept
context as an argument.
|
|
This fixes a regression caused by f7c287fca9. Thanks Markus Holtermann
for identifying the regression.
|
|
`verbose_name_raw` return value comes from `force_text()` anyway.
|
|
|
|
not explicitly deconstructed
|
|
|
|
|
|
This possibility was documented but not tested.
It had been broken during the multiple template engines refactor.
|
|
This is for consistency with Template.render.
It adds a little bit of knowledge about HTTP requests in
django.template.loader but I think consistency trumps purity.
|
|
It's the main entrypoint to the refactored template system.
|
|
Thanks Tim Graham and Markus Holtermann for the reviews.
|
|
Moved list constants instantiation into optimizer's __init__.
|
|
str.lower()
|
|
|
|
|
|
Thanks to Russell Keith-Magee for mentoring this Google Summer of
Code 2014 project and everyone else who helped with the patch!
|
|
This is the expected behavior, but given RequestContext's tortuous
implementation, a straightforward use of its API results in the
opposite.
This commits fixes a regression that must have happened at different
points in the multiple templates engine refactor for different features.
|
|
Since this is a private API introduced in Django 1.8, no documentation
is required.
|
|
This adds support for authentication data (`user:password`) in URLs,
IPv6 addresses, and unicode domains.
The test suite has been improved by adding test URLs from
http://mathiasbynens.be/demo/url-regex (with a few adjustments,
like allowing local and reserved IPs).
The previous URL validation regex failed this test suite on 13
occasions, the validator was updated based on
https://gist.github.com/dperini/729294.
|
|
...with the theoretical assumption that gettext may once reach a
two-digit number. Thanks Walter Doekes for noticing this potential
issue.
|
|
Thanks codeitloadit for the report, living180 for investigations
and Tim Graham for the review.
|
|
|