summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2015-01-12Avoided exceptions in a non-critical check in the admin.Aymeric Augustin
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.
2015-01-12Made debug views not crash when there isn't a default template engine.Aymeric Augustin
2015-01-12Accounted for multiple template engines in template responses.Aymeric Augustin
2015-01-12Deprecated passing a Context to a generic Template.render.Aymeric Augustin
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.
2015-01-12Rewrapped TemplateSyntaxError in Jinja2 backend.Aymeric Augustin
Changed import style to avoid confusion between Django's and Jinja2's APIs.
2015-01-12Fixed #17785 -- Preferred column names in get_relations introspectionClaude Paroz
Thanks Thomas Güttler for the report and the initial patch, and Tim Graham for the review.
2015-01-12Fixed #24089 -- Added check for when ModelAdmin.fieldsets[1]['fields'] isn't ↵Muthiah Annamalai
a list/tuple.
2015-01-12Fixed #24129 -- Added indicator that migrations are rendering the initial stateMarkus Holtermann
Thanks Tim Graham for the review.
2015-01-12Fixed #24124 -- Changed context_processors in the default settings.pyCollin Anderson
2015-01-12Fixed #24123 -- Used all available migrations to generate the initial ↵Markus Holtermann
migration state Thanks Collin Anderson for the input when creating the patch and Tim Graham for the review.
2015-01-12Made Django's templates get their own LANGUAGE_* variables.Collin Anderson
Refs #24117
2015-01-12Fixed #9893 -- Allowed using a field's max_length in the Storage.Pavel Shpilev
2015-01-12Fixed #24118 -- Added --debug-sql option for tests.Marc Tamlyn
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.
2015-01-11Removed supports_binary_field flag as all backends support themClaude Paroz
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.
2015-01-11Fixed #23913 -- Deprecated the `=` comparison in `if` template tag.Ola Sitarska
2015-01-11Refs #24110 -- Added a more descriptive release note and fixed a spelling ↵Markus Holtermann
mistake.
2015-01-10Fixed #24110 -- Rewrote migration unapply to preserve intermediate statesMarkus Holtermann
2015-01-10Fixed #24114 -- Improved error message in GEOSGeometry constructorClaude Paroz
2015-01-10Fixed #13165 -- Added edit and delete links to admin foreign key widgets.Simon Charette
Thanks to Collin Anderson for the review and suggestions and Tim for the final review.
2015-01-10Fixed #24001 -- Added range fields for PostgreSQL.Marc Tamlyn
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
2015-01-10Move % addition to lookups, refactor postgres lookups.Marc Tamlyn
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.
2015-01-10Fixed #23967 -- Added formats for GreekSerafeim Papastefanos
2015-01-10Introspected alternate SQLite FK definitionsClaude Paroz
2015-01-10Fixed #24097 -- Prevented AttributeError in redirect_to_loginClaude Paroz
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.
2015-01-09Removed an undocumented contenttypes synchronization method.Simon Charette
2015-01-09Fixed a typo in contrib/auth/tests/custom_user.py docstring.Tim Graham
2015-01-10Fixed #22583 -- Allowed RunPython and RunSQL to provide hints to the db router.Loic Bistuer
Thanks Markus Holtermann and Tim Graham for the review.
2015-01-09Fixed #24098 -- Added no-op attributes to RunPython and RunSQLMarkus Holtermann
Thanks Loïc Bistuer and Tim Graham for the discussion and review.
2015-01-08Fixed #24020 -- Refactored SQL compiler to use expressionsAnssi Kääriäinen
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.
2015-01-08Fixed #24073 -- Returned None for get_language when translations are deactivatedClaude Paroz
This fixes a regression caused by f7c287fca9. Thanks Markus Holtermann for identifying the regression.
2015-01-08Removed unneeded smart_text callsClaude Paroz
`verbose_name_raw` return value comes from `force_text()` anyway.
2015-01-08Simplified verbose_name_raw propertyClaude Paroz
2015-01-07Fixed #24093 -- Prevented MigrationWriter to write operation kwargs that are ↵Markus Holtermann
not explicitly deconstructed
2015-01-07Fixed null handling in Value expressionJosh Smeaton
2015-01-07Refs #23822 -- Made MigrationOptimizer aware of model managersMarkus Holtermann
2015-01-07Restored support for multiple template names in render(_to_response).Aymeric Augustin
This possibility was documented but not tested. It had been broken during the multiple template engines refactor.
2015-01-07Added a request argument to render_to_string.Aymeric Augustin
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.
2015-01-07Exposed Engine in the django.template namespace.Aymeric Augustin
It's the main entrypoint to the refactored template system.
2015-01-07Fixed #24073 -- Deactivated translations when leave_locale_alone is FalseClaude Paroz
Thanks Tim Graham and Markus Holtermann for the reviews.
2015-01-07Refs #22608 -- Optimized migration optimizerMarkus Holtermann
Moved list constants instantiation into optimizer's __init__.
2015-01-07Refs #22608 -- Optimized migration optimizer and migrate by caching calls to ↵Ulrich Petri
str.lower()
2015-01-07Refs #2443 -- Allowed creation of objects with NULL DurationFieldsMichał Modzelewski
2015-01-07Fixed #24078 -- Removed empty strings from GenericIPAddressFieldJosh Smeaton
2015-01-06Fixed #12663 -- Formalized the Model._meta API for retrieving fields.Daniel Pyrathon
Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
2015-01-06Made context take priority over context processors.Aymeric Augustin
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.
2015-01-06Added comments to remove Engine.render_to_string in Django 2.0.Aymeric Augustin
Since this is a private API introduced in Django 1.8, no documentation is required.
2015-01-06Fixed #20003 -- Improved and extended URLValidatorDanilo Bargen
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.
2015-01-06Fixed gettext version regexClaude Paroz
...with the theoretical assumption that gettext may once reach a two-digit number. Thanks Walter Doekes for noticing this potential issue.
2015-01-06Fixed #23815 -- Prevented UnicodeDecodeError in CSRF middlewareClaude Paroz
Thanks codeitloadit for the report, living180 for investigations and Tim Graham for the review.
2015-01-05Fixed #24022 -- Deprecated the ssi tag.Preston Timmons