Claude Paroz
3f3076edbf
[1.5.x] Fixed #5076 -- Properly decode POSTs with non-utf-8 payload encoding
...
Thanks daniel at blogg.se for the report and Aymeric Augustin for
his assistance on the patch.
Backport of 6de6988f9
from master.
2012-10-30 09:01:57 +01:00
Preston Holmes
e8269a6729
[1.5.x] Fixed #17869 - force logout when REMOTE_USER header disappears
...
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-29 22:58:36 -07:00
Preston Holmes
402a986c25
[1.5.x] Fixed #19057 (again) -- added additional tests
2012-10-29 22:33:46 -07:00
Russell Keith-Magee
e784b5e594
[1.5.X] Added some test guards for some recently added auth tests.
...
Refs #19061 , #19057 .
2012-10-30 10:27:01 +08:00
Aymeric Augustin
322d858abe
[1.5.x] Fixed #19209 -- Documented |date:"I".
...
Thanks mitar for the report.
Backport of 24b2aad
from master.
2012-10-29 23:13:01 +01:00
Aymeric Augustin
a92c7c6e26
[1.5.x] Fixed #19208 -- Docs for mod_wsgi daemon mode
...
Thanks Graham Dumpleton for the patch.
Backport of bc00075
from master.
2012-10-29 21:40:10 +01:00
Claude Paroz
04717ee9b1
[1.5.x] Prevented leftover files and dirs in admin_scripts tests
...
Backport of d30516e1
from master.
2012-10-29 19:12:12 +01:00
Claude Paroz
8c556a32f2
[1.5.x] Fixed #19172 -- Isolated poisoned_http_host tests from 500 handlers
...
Thanks bernardofontes for the report.
Backport of b774c5993
from master.
2012-10-29 17:29:28 +01:00
Luke Plant
d7d7ad2881
[1.5.x] Fixed #17991 - prefetch_related fails with GenericRelation and varchar ID field
...
Thanks to okke@formsma.nl for the report, and carmandrew@gmail.com for the tests.
Backport of ccd14ff25b7642678bf3c9ed8a12643f04853144 from master
2012-10-29 14:41:05 +00:00
Preston Holmes
f427ecdc88
[1.5.x] Fixed #19061 -- added is_active attribute to AbstractBaseUser
2012-10-28 23:06:09 -07:00
Claude Paroz
b4627bcabe
[1.5.x] Fixed #18575 -- Empty DATABASES should default to dummy backend
...
Thanks delormemarco@gmail.com for the report.
Backport of f1cc2be0c
from master.
2012-10-28 23:46:54 +01:00
Aymeric Augustin
95f3f0cbbe
[1.5.x] Fixed a typo in aff9b2f
.
...
Thanks void.
Backport of effe96b
from master.
2012-10-28 22:36:01 +01:00
Aymeric Augustin
8d7e526229
[1.5.x] Fixed #18964 -- floatformat test passes under py3k
...
Thanks Russell for the report.
Backport of b4420d9
from master.
2012-10-28 19:58:12 +01:00
Aymeric Augustin
88393357a6
[1.5.x] Marked cookies-based session expiry test as an expected failure.
...
Refs #19201 .
Backport of 58337b3
from master.
2012-10-28 18:04:50 +01:00
Aymeric Augustin
780eaa4779
[1.5.x] Required serializer to use bytes in loads/dumps
...
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.
Backport of 58a086a
from master.
2012-10-28 18:04:21 +01:00
Anssi Kääriäinen
f105fbe52b
[1.5.x] Fixed #18823 -- Ensured m2m.clear() works when using through+to_field
...
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.
Backpatch of 611c4d6f1c
2012-10-28 17:34:14 +02:00
Aymeric Augustin
13b4d44860
[1.5.x] Reverted unintentional change in aff9b2f
.
...
Backport of 785bf0d
from master.
2012-10-28 12:34:24 +01:00
Aymeric Augustin
54b45dfb53
[1.5.x] Fixed #19203 -- Added isolation to a humanize test
...
Thanks lrekucki for the report.
Backport of aff9b2f
from master.
2012-10-28 09:35:04 +01:00
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