Commit Graph

13163 Commits

Author SHA1 Message Date
Aymeric Augustin 39082494e6 [1.5.x] Fixed #18194 -- Expiration of file-based sessions
* 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.

Backport of 5fec97b from master.
2012-10-28 09:21:56 +01:00
Aymeric Augustin e6b0ee768c [1.5.x] Improved tests introduced in 04b00b6.
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.

Backport of 882c47c from master.
2012-10-28 09:21:27 +01:00
Aymeric Augustin 845d8408e7 [1.5.x] Added optional kwargs to get_expiry_age/date.
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).

Backport of cd17a24 from master.
2012-10-28 09:20:54 +01:00
Claude Paroz c5da577b9e [1.5.x] Fixed #17787 -- Documented reset caches by setting_changed signal
Backport of fc2681b22 from master.
2012-10-27 22:04:06 +02:00
Florian Apolloner cb2817543f [1.5.x] Removed a redundant colon in the query docs.
Thanks to Berker Peksag for the patch.

Backport of 4f11b7362206224ad876018bba19b7c9a08b7f0b from master.
2012-10-27 21:20:21 +02:00
Dmitry Shevchenko d8bd829215 Missing 'h' in word. 2012-10-27 21:09:52 +02:00
Aymeric Augustin 0fe02feab4 [1.5.x] Fixed #19200 -- Session expiry with cached_db
Also did a little bit of cleanup.

Backport of 04b00b6 from master.
2012-10-27 19:41:12 +02:00
Aymeric Augustin b760503a27 [1.5.x] Fixed #18978 -- Moved cleanup command to sessions.
This removes a dependency of 'core' on 'contrib'.

Backport of 83ba0a9 from master.

This deprecation occurs after the alpha, but it's a prerequisite
for fixing decently #18194 which is a release blocker.
2012-10-27 18:38:32 +02:00
Anssi Kääriäinen 15ea36dfc0 [1.5.x] Ensured gis tests aren't run on non-gis Oracle
Backpatch of b55de81b9e
2012-10-27 19:26:33 +03:00
Anssi Kääriäinen 7cf2858747 [1.5.x] Marked a test as expectedFailure on Oracle
Backpatch of a5152bb646
2012-10-27 19:25:53 +03:00
Anssi Kääriäinen fa1083fb0c [1.5.x] Fixed Oracle failure caused by None converted to '' in select_related case
Backpatch of c159d9cec0
2012-10-27 19:25:14 +03:00
Anssi Kääriäinen 18357bf3ac [1.5.x] Fixed Oracle failure for "%" in table name
Backpatch of 2249bd275c
2012-10-27 19:24:48 +03:00
Aymeric Augustin c902623d50 [1.5.x] Fixed comment_test tests under hash randomization.
Thanks clelland for the patch.

Backport of 789ea33 from master.
2012-10-26 22:48:35 +02:00
Aymeric Augustin d1e59794d1 [1.5.x] Fixed feedgenerator tests under hash randomization
Backport of 46d27a6 from master.
2012-10-26 22:41:45 +02:00
Aymeric Augustin 1b4b0dc013 [1.5.x] Fixed httpwrappers tests under hash randomization
Backport of 195bc37 from master
2012-10-26 22:16:00 +02:00
Claude Paroz fbb664066f [1.5.x] Fixed #16820 -- Treated '0' value as True for checkbox inputs
Thanks Dan Fairs for the report and the initial patch.

Backport of be29329cc from master.
2012-10-26 20:48:57 +02:00
Claude Paroz 02b66f161f [1.5.x] Fixed #19191 -- Corrected a typo in CustomUser docs
Thanks spleeyah for the report.

Backport of 90c7656 from master.
2012-10-26 10:26:47 +02:00
Luke Plant f6e2a2b210 [1.5.x] Fixed test failure under Python 2.x introduced in 3e10d22df5
Backport of ee6824ff459e5cba639bd1be70418ac9194945d4 from master
2012-10-26 02:47:30 +01:00
Luke Plant 0efca2a819 [1.5.x] Fixed test failures on Python 3.3 due to dict ordering assumptions.
Refs #19038

Backport of c229f31118bd8a7494692a727860ed7cb58df232 from master
2012-10-26 02:40:51 +01:00
Luke Plant f02f29dccc [1.5.x] Fixed some test failures on Python 3.3 related to QueryDict
Refs #19038.

Backport of 1413ee0a1705beee0df1949b308cc52f2467b5d1 from master
2012-10-26 02:40:33 +01:00
Ian Clelland b430e1db5f [1.5.x] Properly support pickling of LazyObjects in Python 3.3
Backport of 836cd26d7f3394452f1f5196eb26c99fef128a1a from master
2012-10-26 02:40:19 +01:00
Ian Clelland 3deed32394 [1.5.x] Avoid dependence on exact Python exception messages
Backport of a8bbae517963d7cc489fb35e51288e4f0efd8207 from master
2012-10-26 02:40:05 +01:00
Ian Clelland edaacc4112 [1.5.x] Don't use : as an invalid cookie character
Since http://bugs.python.org/issue2193 has been resolved in favour of
the colon in cookie names, we need to test invalid cookie removal using
a different character. "@" is still considered invalid by all sources.

Backport of 419e2137fabdcadadc728cb9bd94af929157dc3b from master
2012-10-26 02:39:39 +01:00
Ian Clelland 7b6978553a [1.5.x] PEP 302 source loaders already decode appropriately
Backport of c11aba1775ba0562251e4b2dba78da6a86ff338c from master
2012-10-26 02:38:15 +01:00
Luke Plant c426d56650 [1.5.x] Fixed #19039 - Python 3.3 fails unit test for duplicate bad cookies
Thanks to clelland for the report.

Backport of 71734dfa72 from master.
2012-10-26 00:55:31 +01:00
Luke Plant 142f69eb8c [1.5.x] Fixed #15040 - Boolean fields return 0 and 1 when loaded through select_related
Thanks to homm for the report and ramiro for the patch.

Backport of f3a2bcdee9 from master
2012-10-26 00:34:47 +01:00
Tim Graham 84849723ad [1.5.X] Fixed #19180 - Clarified policy regarding older versions of the docs.
Backport of 5c143cb340 from master
2012-10-25 17:56:30 -04:00
Eric Florenzano 0887211b03 Update docs/releases/1.5.txt
Fix typo.
2012-10-25 14:50:34 -07:00
Tim Graham efaf07265b [1.5.X] Fixed broken links + spell check in 1.5 release notes.
Backport of 48be78cf08 from master
2012-10-25 17:24:02 -04:00
Aymeric Augustin 6fd321652a [1.5.x] Fixed timezone tests when dict randomization is on
Refs #17758.

Backport of 1d6b7f3 from master.
2012-10-25 23:15:52 +02:00
Aymeric Augustin 9edec9e75d [1.5.x] Ensured get_version returns a native string.
Returning unicode triggers a bug in Python 2.7:
http://bugs.python.org/issue11638

This problem was introduced in 4a103086 (unicode_literals).

Backport of 45c8818 from master.
2012-10-25 21:49:57 +02:00
James Bennett d7f8894465 [1.5.x] Sphinx conf to 1.5 alpha 1. 2012-10-25 14:30:53 -05:00
James Bennett 8b18f0d74b [1.5.x] Make 1.5 alpha release notes consistent with previous pre-release versions. 2012-10-25 14:22:25 -05:00
James Bennett 50dfd4b969 [1.5.x] We actually only support 3.2+ on Py3k. 2012-10-25 14:21:02 -05:00
James Bennett ed96292833 [1.5.x] Bump version information and classifiers for 1.5 alpha release. 2012-10-25 14:18:06 -05:00
Preston Holmes e8b258895a Tweaked tense of URL tag changes for clarity 2012-10-25 12:03:01 -07:00
Jacob Kaplan-Moss 137fdbeebd Added release notes for Django 1.5 alpha 1.
Also updated 1.5-proper release notes a bit.
2012-10-25 13:59:13 -05:00
Anssi Kääriäinen bd6d9ea87c Fixed regression caused by #19102 2012-10-25 19:13:10 +03:00
Anssi Kääriäinen 7de439f32d Fixed #19187 -- Raise consistent error from qs.values().delete() 2012-10-25 17:16:56 +03:00
Anssi Kääriäinen 11b8712cc7 Added docstring to DeleteQuery.delete_qs() 2012-10-25 17:16:56 +03:00
Anssi Kääriäinen f64a5ef404 Fixed #19102 -- Fixed fast-path delete for modified SELECT clause cases
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-25 17:16:44 +03:00
Aymeric Augustin da56e1bac6 Fixed #18796 -- Refactored conversion to bytes in HttpResponse
Thanks mrmachine for the review.
2012-10-25 08:49:51 +02:00
Alex Gaynor ce1eb320e5 Remove a case that is no longer reachable in encodings.py.
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-24 15:53:00 -07:00
Tim Graham da958eb209 Fixed #9471 - Expanded ModelAdmin.raw_id_fields docs; thanks adroffne for the suggestion. 2012-10-24 17:43:24 -04:00
Alex Gaynor 1b096ad773 Removed a function that is already fully implemented by a base class. 2012-10-24 12:49:57 -07:00
Aymeric Augustin 82b3e6ffcb Fixed #13222 -- Made HttpResponse iterable once
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-24 17:19:56 +02:00
Aymeric Augustin 495a8b8107 Fixed #6527 -- Provided repeatable content access
in HttpResponses instantiated with iterators.
2012-10-24 17:08:37 +02:00
Aymeric Augustin 83041ca802 Fixed a DeprecationWarning under Python 3. 2012-10-24 16:52:21 +02:00
Aymeric Augustin c736a1a9f8 Fixed #19176 -- Typo in copy-pasted error message.
Thanks maxirobaina for the report.
2012-10-24 16:21:30 +02:00
Claude Paroz 9fd2f9c5f3 Fixed #19088 -- Always escape % inside blocktrans tag
Thanks vlinhart for the report and Łukasz Rekucki for the patch.
2012-10-23 18:49:22 +02:00