summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2012-10-30Fixed #17744 -- Reset default file storage with setting_changed signalClaude Paroz
2012-10-30Fixed #15714 -- Added note about capitalization of LANG_INFO name_localClaude Paroz
2012-10-30Fixed #5076 -- Properly decode POSTs with non-utf-8 payload encodingClaude Paroz
Thanks daniel at blogg.se for the report and Aymeric Augustin for his assistance on the patch.
2012-10-29Fixed #17869 - force logout when REMOTE_USER header disappearsPreston Holmes
If the current sessions user was logged in via a remote user backend log out the user if REMOTE_USER header not available - otherwise leave it to other auth middleware to install the AnonymousUser. Thanks to Sylvain Bouchard for the initial patch and ticket maintenance.
2012-10-29Fixed #19057 (again) -- added additional testsPreston Holmes
2012-10-30Added some test guards for some recently added auth tests.Russell Keith-Magee
Refs #19061, #19057.
2012-10-29Fixed #19172 -- Isolated poisoned_http_host tests from 500 handlersClaude Paroz
Thanks bernardofontes for the report.
2012-10-29Fixed #17991 - prefetch_related fails with GenericRelation and varchar ID fieldLuke Plant
Thanks to okke@formsma.nl for the report, and carmandrew@gmail.com for the tests.
2012-10-28Fixed #19061 -- added is_active attribute to AbstractBaseUserPreston Holmes
2012-10-28Fixed #18575 -- Empty DATABASES should default to dummy backendClaude Paroz
Thanks delormemarco@gmail.com for the report.
2012-10-28Consistently indent comments in project templateChris McDonald
Makes this file slightly more pep8 compliant.
2012-10-28Fixed a typo in aff9b2f.Aymeric Augustin
Thanks void.
2012-10-28Marked cookies-based session expiry test as an expected failure.Aymeric Augustin
Refs #19201.
2012-10-28Required serializer to use bytes in loads/dumpsAymeric Augustin
loads has no way to tell if it should provide text or bytes to the serializer; bytes are more reasonnable for a serialized representation, and are the only option for pickled data. dumps can perform conversions on the value it receives from the serializer; but for consistency it seems better to require bytes too. The current code would cause an exception when loading pickled session data. See next commit. Also fixed a bug when checking for compressed data.
2012-10-28Fixed #18823 -- Ensured m2m.clear() works when using through+to_fieldAnssi Kääriäinen
There was a potential data-loss issue involved -- when clearing instance's m2m assignments it was possible some other instance's m2m data was deleted instead. This commit also improved None handling for to_field cases.
2012-10-28Fixed #14093 -- Improved error message in the cache session backend.Aymeric Augustin
Thanks stumbles for the patch.
2012-10-28Reverted unintentional change in aff9b2f.Aymeric Augustin
2012-10-28Fixed #19203 -- Added isolation to a humanize testAymeric Augustin
Thanks lrekucki for the report.
2012-10-28Fixed #18194 -- Expiration of file-based sessionsAymeric Augustin
* Prevented stale session files from being loaded * Added removal of stale session files in django-admin.py clearsessions Thanks ej for the report, crodjer and Elvard for their inputs.
2012-10-27Improved tests introduced in 04b00b6.Aymeric Augustin
These tests are expected to fail for the file session backend because it doesn't handle expiry properly. They didn't because of an error in the test setup sequence. Refs #19200, #18194.
2012-10-27Added optional kwargs to get_expiry_age/date.Aymeric Augustin
This change allows for cleaner tests: we can test the exact output. Refs #18194: this change makes it possible to compute session expiry dates at times other than when the session is saved. Fixed #18458: the existence of the `modification` kwarg implies that you must pass it to get_expiry_age/date if you call these functions outside of a short request - response cycle (the intended use case).
2012-10-27Fixed #19200 -- Session expiry with cached_dbAymeric Augustin
Also did a little bit of cleanup.
2012-10-27Fixed #18978 -- Moved cleanup command to sessions.Aymeric Augustin
This removes a dependency of 'core' on 'contrib'.
2012-10-27Fixed #19198 -- merged 4 different Oracle fixesAnssi Kääriäinen
2012-10-27Ensured gis tests aren't run on non-gis OracleAnssi Kääriäinen
2012-10-27Fixed Oracle failure caused by None converted to '' in select_related caseAnssi Kääriäinen
2012-10-27Fixed Oracle failure for "%" in table nameAnssi Kääriäinen
2012-10-26Advanced version identifiers for 1.6 cycle.Ramiro Morales
2012-10-27Fixed #19190 -- Refactored Query select clause attributesAnssi Kääriäinen
The Query.select and Query.select_fields were collapsed into one list because the attributes had to be always in sync. Now that they are in one attribute it is impossible to edit them out of sync. Similar collapse was done for Query.related_select_cols and Query.related_select_fields.
2012-10-26Fixed #16820 -- Treated '0' value as True for checkbox inputsClaude Paroz
Thanks Dan Fairs for the report and the initial patch.
2012-10-26Merge branch 'master' into schema-alterationAndrew Godwin
Conflicts: django/db/backends/__init__.py django/db/models/fields/related.py django/db/models/options.py
2012-10-26Properly support pickling of LazyObjects in Python 3.3Ian Clelland
2012-10-26PEP 302 source loaders already decode appropriatelyIan Clelland
2012-10-26Fixed #15040 - Boolean fields return 0 and 1 when loaded through select_relatedLuke Plant
Thanks to homm for the report and ramiro for the patch.
2012-10-25Ensured get_version returns a native string.Aymeric Augustin
Returning unicode triggers a bug in Python 2.7: http://bugs.python.org/issue11638 This problem was introduced in 4a103086 (unicode_literals).
2012-10-25Fixed regression caused by #19102Anssi Kääriäinen
2012-10-25Fixed #19187 -- Raise consistent error from qs.values().delete()Anssi Kääriäinen
2012-10-25Added docstring to DeleteQuery.delete_qs()Anssi Kääriäinen
2012-10-25Fixed #19102 -- Fixed fast-path delete for modified SELECT clause casesAnssi Kääriäinen
There was a bug introduced in #18676 which caused fast-path deletes implemented as "DELETE WHERE pk IN <subquery>" to fail if the SELECT clause contained additional stuff (for example extra() and annotate()). Thanks to Trac alias pressureman for spotting this regression.
2012-10-25Add 'page_kwarg' attribute to `MultipleObjectMixin`, removing hardcoded 'page'.Tom Christie
2012-10-25Fixed #18796 -- Refactored conversion to bytes in HttpResponseAymeric Augustin
Thanks mrmachine for the review.
2012-10-24Remove a case that is no longer reachable in encodings.py.Alex Gaynor
This case was originally designed to handle Exception's which didn't gracefully support coercing themselves to unicode. However, because it lives in the `else` case of `if hasattr(s, '__unicode__'):` we can be sure it's no longer reachable in djanog anymore, because since Python 2.5 exception has subclassed object, which means Exception objects always have an __unicode__ method.
2012-10-24Removed a function that is already fully implemented by a base class.Alex Gaynor
2012-10-24Fixed #13222 -- Made HttpResponse iterable onceAymeric Augustin
response.content can be accessed many times as desired, and always returns the same result. iter(response) works only once and consumes the iterator.
2012-10-24Fixed #6527 -- Provided repeatable content accessAymeric Augustin
in HttpResponses instantiated with iterators.
2012-10-24Fixed #19176 -- Typo in copy-pasted error message.Aymeric Augustin
Thanks maxirobaina for the report.
2012-10-23Fixed #19088 -- Always escape % inside blocktrans tagClaude Paroz
Thanks vlinhart for the report and Łukasz Rekucki for the patch.
2012-10-22Fixed #19164 -- Fixed diffsettings command broken in fix for #18545.Carl Meyer
Thanks Mario César for the report and draft patch.
2012-10-23Reverted 6a64822bf4632707212314a25a843c862bdb3874.Aymeric Augustin
This commit caused every test that does two or more assertContains to fail, because of #6527. It also made HttpResponse non-pickleable. Refs #13222.
2012-10-22Merge pull request #460 from JanBednarik/ticket_19162Aymeric Augustin
Fixed #19162 -- Wrong indentation.