summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2015-02-04Removed direct manipulation of settings in auth tests; refs #21230.Tim Graham
2015-02-04Removed non-used EmptyShortCircuitAnssi Kääriäinen
2015-02-04Removed EverythingNodeAnssi Kääriäinen
At the same time, made sure that empty nodes in where clause match everything.
2015-02-04Fixed #24268 -- removed Query.havingAnssi Kääriäinen
Instead of splitting filter clauses to where and having parts before adding them to query.where or query.having, add all filter clauses to query.where, and when compiling the query split the where to having and where parts.
2015-02-04Fixed #14497 -- Improved admin widget for "read only" FileFieldsRiccardo Magliocchetti
Based on patch by Adam J Forster, Paul Collins, and Julien.
2015-02-04Fixed #24235 -- Removed is_usable attribute from template loaders.Preston Timmons
2015-02-03Fixed #15321 -- Honored ancestors unique checks.Aron Podrigal
Thanks to Tim for the review.
2015-02-03Fixed #24266 -- Changed get_parent_list to return a list ordered by MRO.Simon Charette
Thanks to Aron Podrigal for the initial patch and Tim for the review.
2015-02-03Reverted "Fixed #24146 -- Fixed a missing fields regression in admin checks."Tim Graham
This reverts commit e8171daf0cd7f0e070395cb4c850c17fea32f11d. A new solution is forthcoming.
2015-02-03Fixed #24149 -- Normalized tuple settings to lists.darkryder
2015-02-03Fixed #24252 -- Forced lazy __str__ to utf-8 on Python 2Claude Paroz
Thanks Stanislas Guerra for the report and Tomas Ehrlich for the review.
2015-02-03Fixed #24240 -- Allowed GZipping a Unicode StreamingHttpResponseMatthew Somerville
make_bytes() assumed that if the Content-Encoding header is set, then everything had already been dealt with bytes-wise, but in a streaming situation this was not necessarily the case. make_bytes() is only called when necessary when working with a StreamingHttpResponse iterable, but by that point the middleware has added the Content-Encoding header and thus make_bytes() tried to call bytes(value) (and dies). If it had been a normal HttpResponse, make_bytes() would have been called when the content was set, well before the middleware set the Content-Encoding header. This commit removes the special casing when Content-Encoding is set, allowing unicode strings to be encoded during the iteration before they are e.g. gzipped. This behaviour was added a long time ago for #4969 and it doesn't appear to be necessary any more, as everything is correctly made into bytes at the appropriate places. Two new tests, to show that supplying non-ASCII characters to a StreamingHttpResponse works fine normally, and when passed through the GZip middleware (the latter dies without the change to make_bytes()). Removes the test with a nonsense Content-Encoding and Unicode input - if this were to happen, it can still be encoded as bytes fine.
2015-02-03Fixed #18651 -- Enabled optional assignments for simple_tag().Preston Timmons
2015-02-03Fixed #23617 -- Added get_pk_value_on_save()Anssi Kääriäinen
The method is mainly intended for use with UUIDField. For UUIDField we want to call the field's default even when primary key value is explicitly set to None to match the behavior of AutoField. Thanks to Marc Tamlyn and Tim Graham for review.
2015-02-03Fixed #24263 -- Prevented extra queries on BaseDateDetailView with a custom ↵Tim Graham
queryset. Thanks jekka-ua for the report and patch.
2015-02-03Fixed #24168 -- Allowed selecting a template engine in a few APIs.Aymeric Augustin
Specifically in rendering shortcuts, template responses, and class-based views that return template responses. Also added a test for render_to_response(status=...) which was missing from fdbfc980. Thanks Tim and Carl for the review.
2015-02-02Removed contrib.auth.forms.mask_password()Tim Graham
This function is unused since dce820ff70f00e974afd3e6e310aa825bc55319f after being introduced in 718a5ba1a1a77374c26b134ded46dab13776d1a1
2015-02-01Removed query.alias_diff()Tim Graham
This function is unused since 6fe2b001dba45134d7c10729c57959995e241a88
2015-02-01Removed UpdateCacheMiddleware._session_accessed()Tim Graham
This method is unused since f567d04b249913db4a37adab8ba521cdc974d423
2015-02-01Removed Query.raise_field_error()Tim Graham
This method was inadvertently reintroduced in f59fd15c4928caf3dfcbd50f6ab47be409a43b01
2015-02-01Removed InlineAdminForm.field_count()Tim Graham
This method is unused since 337d102b8612503bb9dc712bfbf07432a9a96302
2015-01-31Fixed #24245 -- Added introspection for database defaults.Tim Graham
Needed for tests for migrations handling of database defaults.
2015-01-31Removed PostgreSQL DatabaseWrapper._set_isolation_level().Tim Graham
This method is unused since 8717b0668caf00ec5e81ef5a1e31b4d7c64eee8a.
2015-01-30Fixed #14483 -- Allowed using subqueries with GIS lookupsClaude Paroz
2015-01-30Reverted "Fixed #6785 -- Made QuerySet.get() fetch a limited number of rows."Tim Graham
This reverts commit da79ccca1d34f427952cce4555e598a700adb8de. This optimized the unsuccessful case at the expense of the successful one.
2015-01-30Fixed #24211 -- Removed ValuesQuerySet() and ValuesListQuerySet().Loic Bistuer
Thanks Anssi Kääriäinen, Marc Tamlyn, and Tim Graham for the reviews.
2015-01-30Fixed #24164 -- Fixed Oracle GIS limited aggregation test failure.Tim Graham
2015-01-29Fixed #24145 -- Added PUT & PATCH to CommonMiddleware APPEND_SLASH redirect ↵Samuel Colvin
error.
2015-01-29Fixed #23940 -- Allowed model fields to be named `exact`.Simon Charette
An explicit `__exact` lookup in the related managers filters was interpreted as a reference to a foreign `exact` field. Thanks to Trac alias zhiyajun11 for the report, Josh for the investigation, Loïc for the test name and Tim for the review.
2015-01-29Fixed #24223 -- Prevented a session test from leaking.Matt
2015-01-29Removed ForeignObjectRel.get_lookup_constraint() [unused].Tim Graham
2015-01-29Fixed Persian locale FIRST_DAY_OF_WEEK & DECIMAL/THOUSAND_SEPARATORs.Reza Mohammadi
Reference: http://lh.2xlibre.net/locale/fa_IR/
2015-01-28Removed threading fallback imports.Tim Graham
Django imports threading in many other places without fallback.
2015-01-28Fixed #24137 -- Switched to HTTP reason phrases from Python stdlib.Jon Dufresne
2015-01-28Updated Azerbaijani language name.Emin Mastizada
2015-01-28Refs #14030 -- Renamed CombinableMixin to CombinableJosh Smeaton
Removed unused method and updated docstrings.
2015-01-28Refs #14030 -- Added repr methods to all expressionsJosh Smeaton
2015-01-27Fixed #24209 -- Prevented crash when parsing malformed RFC 2231 headersRaul Cumplido
Thanks Tom Christie for the report and review.
2015-01-27Fixed #24219 -- Moved SelectDateWidget together with the other widgetsLoic Bistuer
and deprecated django.forms.extras. Thanks Berker Peksag and Tim Graham for the reviews.
2015-01-27Fixed #24210 -- Cleaned up relational fields __init__().Loic Bistuer
Thanks Collin Anderson and Tim Graham for the reviews.
2015-01-27Fixed #24053 -- Removed admin CSS & images for IE6 & 7.seanwestfall
2015-01-27Fixed #24154 -- Backends can now check support for expressionsJosh Smeaton
2015-01-26Fixed #24220 - Allowed lazy objects for success_urlTomáš Ehrlich
2015-01-26Fixed #24221 - Used precompiled regexp for percent-placeholder matching.Tomáš Ehrlich
2015-01-23Moved imports in GIS tests to avoid failure if dependencies aren't installed.Tim Graham
2015-01-23Fixed #24205 -- Deprecated Signal.disconnect weak parameter.Florian Apolloner
2015-01-23Clarified docstring in dispatch/dispatcher.pyTim Graham
2015-01-22Isolated a flatpages test; refs #11505.Tim Graham
2015-01-22Fixed #24170 -- Implemented decompress for BaseRangeField widgetsNg Zhi An
2015-01-22Fixed #24104 -- Fixed check to look on field.many_to_many instead of class ↵Andriy Sokolovskiy
instance