James Bennett
82d4786544
[1.5.x] Bump version numbers for security release.
2012-12-10 15:49:48 -06:00
Florian Apolloner
77b06e4151
[1.5.X] Fixed a security issue in get_host.
...
Full disclosure and new release forthcoming.
2012-12-10 22:13:28 +01:00
Florian Apolloner
fce1fa0f7f
[1.5.X] Fixed #18856 -- Ensured that redirects can't be poisoned by malicious users.
2012-12-10 22:13:28 +01:00
Aymeric Augustin
d6bad2e9ea
[1.5.x] Fixed #19392 -- Improved error for old-style url tags with dashes.
...
Thanks dloewenherz for the report.
Backport of 4951932
from master.
2012-12-09 16:18:52 +01:00
Claude Paroz
a155fb7408
[1.5.x] Fixed #19439 -- Removed unused template tag library in change_password.html
...
Thanks ppetrid for the report.
Backport of 35492f8fc
from master.
2012-12-08 12:54:22 +01:00
Claude Paroz
fa54604606
[1.5.x] Fixed #19423 -- Prevented ModelAdmin sharing widgets due to formfield_overrides
...
Thanks joebuyer at manycycles.com for the report and Simon Charette
for the review.
Backport of 04e6542b5
from master.
2012-12-08 12:47:33 +01:00
Claude Paroz
9af9cdb3eb
[1.5.x] Fixed a string detection in ogrinspect.py
...
Backport of 61407951
from master.
2012-12-08 12:20:48 +01:00
Claude Paroz
4214a22e06
[1.5.x] Fixed #19357 -- Allow non-ASCII chars in filesystem paths
...
Thanks kujiu for the report and Aymeric Augustin for the review.
Backport of c91667338
from master.
2012-12-08 11:16:03 +01:00
Andreas Hug
67bddc0b7b
[1.5.x] Fixed #18574 -- Make BaseFormSet.is_valid call its underlying forms' is_valid
...
Thanks Simon Charette for the report and the initial patch.
Backport of 66dfcc10b
from master.
2012-12-06 20:05:16 +01:00
Claude Paroz
e9301ae451
[1.5.x] Fixed #19367 -- Fixed saving ContentFile in filesystem storage
...
This was not working properly when ContentFile was initialized with
an unicode string.
Thanks Alexey Boriskin for the report and the test.
Backport of 34dcf51e06
from master.
2012-12-06 17:19:35 +01:00
Marc Aymerich
57a41d985a
[1.5.x] Fixed #19429 -- Applied linebreaksbr to read-only fields in inlines
...
Applied to inlines what ec9d6b1122
did for main fieldsets.
Backport of 553838a28
from master.
2012-12-06 09:54:47 +01:00
Ramiro Morales
6a098aa6f2
[1.5.x] Fixed #18697 -- Made values accepted for two customizable admin templates consistent.
...
Thanks and at cloverfastfood dot com for the report.
b64d30405a
from master.
2012-12-04 19:53:52 -03:00
Ramiro Morales
b6f67bd50e
[1.5.x] Minor idiomatic and docstring edits in ar localflavor.
...
45f00dbb93
from master.
2012-12-04 19:50:19 -03:00
Claude Paroz
7fea7cf5d7
[1.5.x] Fixed #19378 -- Ensured get_success_url returns a non-lazy URL
...
Backport of 795ac7deda
from master.
2012-12-04 13:24:04 +01:00
Sebastián Magrí
237a404d3e
[1.5.x] Fixed #19318 -- Ensured that the admin's SimpleListFilter options can be displayed as selected even if the lookup's first element is not a string.
...
Backport of 88e1715639
2012-12-03 11:55:33 -08:00
Claude Paroz
3d62eaea69
[1.5.x] Fixed #19416 -- Fixed multi-line commands in initial SQL files
...
Thanks Aymeric Augustin for detecting this regression.
Backport of 5fa5621f5
from master.
2012-12-03 20:49:28 +01:00
Aymeric Augustin
c9a47fb379
[1.5.x] Fixed #19397 -- Crash on binary files in project templates.
...
Thanks gw 2012 at tnode com for the report.
Backport of baae4b8
.
2012-12-03 10:45:42 +01:00
Claude Paroz
1b93499849
[1.5.x] Fixed #19015 -- Add ISO input formats to all formats
...
Backport of 349c4c37f8
from master.
2012-12-01 15:43:38 +01:00
Claude Paroz
ae549cc1dd
Fixed #19015 -- Removed ISO formats from localized formats.py
...
ISO formats are automatically appended to the list of input
formats. Kept only when it is specified in first position, as it
has a special meaning in localize_input.
Thanks Bojan Mihelac for the report.
Backport of 90d3af380
from master.
2012-12-01 14:15:55 +01:00
Claude Paroz
676e4d5497
[1.5.x] Fixed #19349 -- Fixed re-rendering of ReadOnlyPasswordHashWidget
...
Thanks tim.bowden at mapforge.com.au for the report, Andreas Hug
for the patch and Anton Baklanov for the review.
Backport of a0cd6dd11
from master.
2012-12-01 12:23:49 +01:00
Ryan Kaskel
0fc5878c5f
[1.5.x] Allow custom User models to use the UserAdmin's change password view.
...
Backport of bfdedb687a
.
2012-11-30 16:24:51 +01:00
Claude Paroz
47c5b50d34
[1.5.x] Fixed #19354 -- Do not assume usermodel.pk == usermodel.id
...
Thanks markteisman at hotmail.com for the report.
Backport of 0eeae1505
from master.
2012-11-29 21:52:22 +01:00
Aymeric Augustin
83df1f3b57
[1.5.x] Fixed #19356 -- Increased session key entropy.
...
Backport of d913a8b
from master.
2012-11-29 16:38:09 +01:00
Ramiro Morales
bb6e661e0e
[1.5.x] Fixed a comment typo.
2012-11-28 20:42:00 -03:00
Anssi Kääriäinen
e3ea668b47
[1.5.x] Fixed #14694 again -- Made defer() works with reverse relations
...
Master and stable/1.5.x had diverged in models/query.py.
2012-11-28 23:56:03 +02:00
Claude Paroz
89593048e2
[1.5.x] Fixed #19366 -- Prevented GEOSIndexError when comparing geometries
...
Thanks Craig de Stigter for the report and collaboration on the
patch.
Backport of cc3c4a9d5
from master.
2012-11-28 22:34:43 +01:00
Tai Lee
a21e8dee76
[1.5.x] Fixed #14694 -- Made ``defer()`` work with reverse relations
...
Reverse o2o fields are now usable with defer.
Backpatch of [6ebf115206
]
2012-11-28 18:25:34 +02:00
James Bennett
1c05619c1f
[1.5.x] Bump version numbers for 1.5 beta 1.
2012-11-27 16:09:10 -06:00
Danilo Bargen
5509eb8626
[1.5.x] Fixed #19370 -- Made date filter properly handle midnight value
...
Backport of c10aaa70a
from master.
2012-11-27 21:25:21 +01:00
Anssi Kääriäinen
4467d86b61
[1.5.x] Removed duplicate opts.pk_index() method
...
Backpatch of [d37483c533
]
2012-11-27 21:59:03 +02:00
Aymeric Augustin
71e5ad248e
[1.5.x] Fixed #19362 -- Detected invalid use of @python_2_unicode_compatible.
...
Thanks m3wolf for the report and akaariai for reproducing the problem.
Backport of 2ea80b9
.
2012-11-27 09:55:26 +01:00
Edward Tjörnhammar
7c91b67cfa
[1.5.x] Fixed #17911 -- Ensure that admin readonly fields' display values are shown in change forms when the raw value is None.
...
Backport of 29d59a879e
2012-11-25 23:16:44 +01:00
Julien Phalip
22ca5bab95
[1.5.x] Fixed #17646 -- Added a get_list_filter() method to ModelAdmin. Thanks to rasca for the suggestion and to mateusgondim for the patch.
...
Backport of ae206d78f6
2012-11-25 20:43:18 +01:00
Aymeric Augustin
37c54c27bd
[1.5.x] Change exception type to reduce confusion.
...
TemplateSyntaxError is expected at compile time, not at run time.
Refs #19280 .
Backport of 7644800
.
2012-11-25 19:53:50 +01:00
Claude Paroz
6945f60c2b
[1.5.x] Enabled SimpleTestCase to be decorated by override_settings
...
Refs #18417 . Also fixed some test case classes which subclassed
the wrong parent.
Backport of a5d47415f
from master.
2012-11-25 19:08:51 +01:00
Claude Paroz
4389b51fab
[1.5.x] Fixed #18417 -- Raised exception when unittest.TestCase is decorated with override_settings
...
Backport of 9f7cefd5
from master.
2012-11-25 19:08:27 +01:00
Julien Phalip
2e5b725197
[1.5.x] Fixed #19355 -- Improved LiveServerThread's handling of exceptions. Thanks to flub for the report.
...
Backport of 612357f8ef
2012-11-25 12:57:14 +01:00
Aymeric Augustin
8c2f36260e
[1.5.x] Fixed #19280 -- Raised an explicit exception for the old {% url %} syntax.
...
Backport of 6b8a7ce.
2012-11-24 22:05:41 +01:00
Vladimír Macek
a12db81135
[1.5.x] Fixed #19293 -- Updated Czech input formats
...
Thanks vzima for the report.
Backport of abd0e76d2
from master.
2012-11-24 21:33:59 +01:00
Jonatan Heyman
75bc081b91
[1.5.x] Fixed #18722 -- Adjusted width of sortable columns in admin
...
Thanks Simon Charette for the report.
Backport of 35a0fff2
from master.
2012-11-24 17:15:03 +01:00
Claude Paroz
fc570b1415
[1.5.x] Updated User manager when testing custom AUTH_USER_MODEL
...
This is giving more real test conditions when AUTH_USER_MODEL is
set with override_settings.
Backport of a962bc7c4
from master.
2012-11-24 16:01:10 +01:00
Chris Khoo
9efe1a7210
[1.5.x] Fixed #19237 -- Improved strip_tags utility
...
The previous pattern didn't properly addressed cases where '>'
was present inside quoted tag content.
Backport of bf1871d87
from master.
2012-11-24 12:20:41 +01:00
Aymeric Augustin
a708b8fcbe
[1.5.x] Fixed #19343 -- Deadlock with TransactionTestCase + TEST_MIRROR + multi_db.
...
Thanks Jeremy Dunck for the review.
Backport of be64dd3
from master.
2012-11-24 09:49:07 +01:00
Russell Keith-Magee
8e8f1ddf57
[1.5.x] Removed some stray debug lines introduced accidentally in c8985a8
.
...
Backport of f2d8004
.
2012-11-24 15:27:09 +08:00
Russell Keith-Magee
3fd8458fb3
[1.5.x] Fixed #19806 -- Ensure that content types and permissions aren't created for swapped models.
...
Thanks to rizumu for the report.
Backport of c8985a8a73
.
2012-11-24 14:26:50 +08:00
Jeremy Dunck
158a0332bf
Changed Luxembourgish name_local to unicode escapes.
...
Fixes 6a00c196
.
2012-11-23 19:30:52 -08:00
Anssi Kääriäinen
421e599ad3
[1.5.x] Fixed #19351 -- SQLite bulk_insert of more than 500 single-field objs
...
Backpatch of 0a0a0d66b3
2012-11-24 01:20:22 +02:00
Anssi Kääriäinen
625dc3f072
[1.5.x] Fixed SQLite's collapsing of same-valued instances in bulk_create
...
SQLite used INSERT INTO tbl SELECT %s UNION SELECT %s, the problem
was that there should have been UNION ALL instead of UNION.
Refs #19351
Backpatch of a27582484c
2012-11-24 01:19:17 +02:00
Claude Paroz
6a00c1968b
Added new languages
...
Afrikaans, Belarusian, Breton, Venezuelan Spanish, Interlingua,
Luxembourgish, Udmurt
2012-11-23 23:16:15 +01:00
Anssi Kääriäinen
90c7aa0740
[1.5.x] Fixed #18375 -- Removed dict-ordering dependency for F-expressions
...
F() expressions reuse joins like any lookup in a .filter() call -
reuse multijoins generated in the same .filter() call else generate
new joins. Also, lookups can now reuse joins generated by F().
This change is backwards incompatible, but it is required to prevent
dict randomization from generating different queries depending on
.filter() kwarg ordering. The new way is also more consistent in how
joins are reused.
Backpatch of 90b86291d0
2012-11-23 20:07:50 +02:00
Claude Paroz
56f8e4b79c
[1.5.x] Fixed cursor commit command in PostGIS backend
...
Thanks Bruno Renié for noticing the error.
Backport of 7b9a1fb96
from master.
2012-11-23 17:23:15 +01:00
Flavio Curella
d46b24e682
[1.5.x] Fixed #19152 -- Allowed PostGIS tests to be run without template
...
From version 2, a PostGIS template is no longer required to create
a GIS-enabled database.
Backport of fbd1df8e
from master.
2012-11-23 16:07:29 +01:00
Aymeric Augustin
b9f9bc9a17
[1.5.x] Fixed #18984 -- Avoided a deadlock in test teardown.
...
Thanks Jeremy Dunck for the report.
Backport of 891c530
from master.
2012-11-22 20:56:41 +01:00
Aymeric Augustin
9bd67f056c
[1.5.x] Fixed #16039 -- Made post_syncdb handlers multi-db aware.
...
Also reverted 8fb7a90026
. Refs #17055 .
Backport of a026e48
from master.
2012-11-22 20:54:20 +01:00
George Hickman
12cf9d2be3
[1.5.x] Fixed #19316 -- Set View args/kwargs/request before dispatch
...
Backport of ea6b95db
from master.
2012-11-22 20:14:04 +01:00
Tim Graham
63546533c1
[1.5.X] Clarified usage of as_view kwargs for setting arguments on class based views
...
Thanks Dave McLain for the patch.
Backport of 7b2d95eb30
from master
2012-11-22 09:08:37 -05:00
Ramiro Morales
1220f22b88
[1.5.x] Fixed #19331 (again) use the right admin named URL.
...
This allows us to get the trailing slash in URLs without having to
manually assemble and hard-code them.
See also commits e9497a, a222d6, f51eab, 5a9e12.
Backport of 8fdb28219d
from master.
2012-11-20 21:52:07 -03:00
Claude Paroz
e15df5b6b5
[1.5.x] Fixed #19331 -- Added missing trailing slash in auth admin template
...
Thanks ppetrid at yawd.eu for the report.
Backport of 8c21c53c8
from master.
2012-11-20 19:21:17 +01:00
Riley Strong
e56c8d7e0a
[1.5.X] Fixed typo in django.template.defaulttags
...
Backport of d179794c6b
from master
2012-11-20 05:03:22 -05:00
Preston Holmes
3a0e0230f7
[1.5.x] Fixed #18658 -- Improved ModelAdmin.message_user API
...
Thanks to Lowe Thiderman for the patch and tests
2012-11-19 16:03:30 -08:00
Ramiro Morales
eb67a45a39
Updated admin base translation file.
2012-11-18 09:33:10 -03:00
Aymeric Augustin
a586f2a7e5
[1.5.x] Fixed #19291 -- Completed deprecation of ADMIN_MEDIA_PREFIX.
...
Backport of 9b755a2
from master.
2012-11-17 23:05:16 +01:00
Tom Christie
2bfea36208
[1.5.x] Add 'page_kwarg' attribute to `MultipleObjectMixin`, removing hardcoded 'page'.
...
(cherry picked from commit 502be865c6
)
2012-11-17 21:30:22 +01:00
Kent Hauser
94208399d9
[1.5.x] Add `form` to formwizard context (includes tests)
...
Backport of ba81164fb7
from master.
2012-11-17 21:24:19 +01:00
Claude Paroz
3d4f5f6086
[1.5.x] Fixed #19114 -- Fixed LogEntry unicode representation
...
Thanks niko at neagee.net for the report and Emil Stenstrom for
the patch.
Backport of e0363c688
from master.
2012-11-17 19:21:09 +01:00
Claude Paroz
fc379b4865
[1.5.x] Fixed #19036 -- Fixed base64 uploads decoding
...
Thanks anthony at adsorbtion.org for the report, and johannesl for
bringing the patch up-to-date.
Backport of 2a67374b5
from master.
2012-11-17 17:26:24 +01:00
Claude Paroz
1b6e751430
[1.5.x] Fixed #19226 -- Applied linebreaksbr to read-only fields in admin
...
Thanks shadow for the report, and Melevir and thiderman for the
patch.
Backport of ec9d6b112
from master.
2012-11-17 17:12:24 +01:00
Claude Paroz
a023952e10
[1.5.x] Fixed #18989 -- Removed unused condition in CursorWrapper
...
Thanks zimnyx for the report.
Backport of 8c6927876
from master.
2012-11-17 16:54:12 +01:00
Gabriel Hurley
dd740e2b2e
[1.5.x] Fixed #18210 -- Escaped special characters in reverse prefixes.
...
Ensured that special characters passed in to reverse via the
prefix argument are properly escaped so that calls to
django.utils.regex_helpers.normalize and/or string formatting
operations don't result in exceptions.
Thanks to toofishes for the error report.
Backport of 90e530978d
from master.
2012-11-17 15:51:10 +01:00
Jannis Leidel
0e3f7814d7
[1.5.x] Fixed #19136 -- Properly escape gettext context prefixes in the i18n JavaScript view template.
...
Backport of 4a5e8087ac
from master.
2012-11-17 15:39:34 +01:00
Preston Holmes
0d49fdb573
[1.5.x] Fixed #18985 -- made DeprecationWarnings loud
...
Capture warnings in Python >= 2.7 and route through
console handler, which is subject to DEBUG==True
Thanks to dstufft for the idea, and claudep for initial patch
2012-11-16 17:08:02 -08:00
Brandon Adams
cefbf09a4d
[1.5.X] Fixed docs noting comment_will_be_sent returns a 400, not a 403
...
Backport of d8ee46afff
from master
2012-11-16 18:20:11 -05:00
Claude Paroz
b39b0aedbf
[1.5.x] Fixed #19296 -- Applied test connection sharing for spatialite
...
Thanks pegler at gmail.com for the report and the initial patch.
Backport of ff0d3126af
from master.
2012-11-16 14:33:59 +01:00
Anssi Kääriäinen
33f1181c31
[1.5.x] Fixed #19058 -- Fixed Oracle GIS crash
...
The problem is the same as in #10888 which was reintroduced when
bulk_insert was added. Thanks to Jani Tiainen for report, patch and
also testing the final patch on Oracle GIS.
Backpatch of 92d7f541da
2012-11-15 16:11:22 +02:00
Claude Paroz
ebafba50a4
[1.5.x] Fixed #19272 -- Fixed gettext_lazy returned type on Python 2
...
Thanks tyrion for the report.
Backport of 550ddc66b
from master.
2012-11-14 10:55:12 +01:00
Claude Paroz
8967906e0a
[1.5.x] Fixed #19186 -- Fixed sending mail with unicode content on Python 3
...
Thanks alex_po for the report and Luke Plant for the analysis.
Backport of 1620c27936
from master.
2012-11-14 10:45:57 +01:00
Anssi Kääriäinen
af044d86b8
Fixed select_related performance regressions
...
The regression was caused by select_related fix for Oracle, commit
c159d9cec0
.
2012-11-13 23:02:08 +02:00
Anssi Kääriäinen
fe21c233d4
Removed use of SortedDict for query.alias_refcount
...
This will have a smallish impact on performance. Refs #19276 .
2012-11-13 23:01:34 +02:00
Anssi Kääriäinen
538d6c0fcd
Some changes to SortedDict to make it faster under py2
...
Refs #19276
2012-11-13 23:01:25 +02:00
Aymeric Augustin
3db2aeec98
[1.5.x] Tweaked cache key creation to avoid strict typing.
...
This is a provisional change. See #19221 for details.
Backport of 6c69de8
from master.
2012-11-11 21:25:30 +01:00
Anssi Kääriäinen
825a793555
[1.5.x] Fixed #19273 -- Fixed DB cache backend on pg 9.0+ and py3
...
There was a problem caused by Postgres 9.0+ having bytea_output default
value of 'hex' and cache backend inserting the content as 'bytes' into
a column of type TEXT. Fixed by converting the bytes value to a string
before insert.
Backpatch of [cc0ac26f4a
].
2012-11-10 19:48:27 +02:00
Claude Paroz
48a2917d46
[1.5.x] Removed an impossible code path in cache function
...
Backport of 04a7ea328
from master.
2012-11-10 15:45:45 +01:00
Claude Paroz
e6bc0c5bab
[1.5.x] Fixed #14264 -- Ensured settings.configure configures logging
...
Thanks Matt McDonald for the patch.
Backport of 34162698c
from master.
2012-11-10 12:10:43 +01:00
Sean Breant
6554137eeb
[1.5.x] Fixed #19262 -- Support cookie pickling in SimpleTemplateResponse
...
Refs #15863 .
Backport of 4d817b3887
from master.
2012-11-09 21:11:36 +01:00
Claude Paroz
dc95791e61
[1.5.x] Fixed #19261 -- Delayed Queryset evaluation in paginators
...
Thanks trbs for the report and the patch.
Backport of 1b307d6c8f
from master.
2012-11-09 19:44:47 +01:00
Florian Apolloner
31eefc8349
[1.5.X] Added missing encoding preamble to gis tests.
...
'coverage html' did fail without it.
Thanks to Claude Paroz for figuring it out.
Backport of aea8bf0662
from master.
2012-11-09 15:33:37 +01:00
Anssi Kääriäinen
908226cf1a
[1.5.x] Fixed #17144 -- MySQL again groups by PK only
...
Thanks to Christian Oudard for the report and tests.
Backpatch of [cafb266954
]
Conflicts:
django/db/models/sql/compiler.py
2012-11-08 01:10:24 +02:00
Claude Paroz
34d0c30e87
[1.5.x] Fixed #19257 -- Don't swallow command's KeyError in call_command
...
Thanks Giovanni Bajo for the report.
Backport of 9a09558e9f
from master.
2012-11-07 18:30:10 +01:00
Claude Paroz
e645c89bbb
[1.5.x] Fixed #14315 -- Made memcached backend handle negative incr/decr values
...
Thanks Michael Manfre for the report and initial patch and
Tobias McNulty for the review.
Backport of 79dd751b0b
from master.
2012-11-06 12:23:32 +01:00
Aymeric Augustin
93e0ec553d
[1.5.x] Fixed #19254 -- Bug in SESSION_FILE_PATH handling.
...
Thanks simonb for the report.
Refs #18194 .
Backport of 11fd00c
from master.
2012-11-06 10:21:30 +01:00
Claude Paroz
a23c9c48a8
[1.5.x] Fixed #8627 -- Prevented textareas to swallow first newline content
...
Browsers consider the first newline in textareas as some display
artifact, not real content. Hence they are not sending it back to
the server. If we want to keep initial newlines, we have to add one
when we render the textarea.
Thanks bastih for the report and initial patch.
Backport of 78f66691ee
from master.
2012-11-05 20:56:25 +01:00
Preston Holmes
c7d5e7c75b
[1.5.x] Fixed py3 compatibility for 5a00a57aa5
2012-11-04 23:39:56 -08:00
Alex Gaynor
d35b95c2f4
Merge branch 'stable/1.5.x' of https://github.com/django/django into stable/1.5.x
2012-11-04 15:58:54 -08:00
Alex Gaynor
d828d4e186
[1.5.x] Merge pull request #495 from aisipos/ticket_18949
...
Fixed #18949 -- Improve performance of model_to_dict with many-to-many
Backport of 4d766b3c9a
.
2012-11-04 15:58:37 -08:00
Preston Holmes
b85cb92ba9
[1.5.x] Fixed #19240 -- include pagination error details in ListView 404
...
Thanks to seawolf for the patch
2012-11-04 15:52:41 -08:00
Alex Gaynor
69a0c91c90
[1.5.x]Merge pull request #494 from mrj0/model_split
...
model_split: Fixed #19236 - fixed error for abstract models with a split method
Backport of 8d3f932f18
2012-11-04 14:21:49 -08:00
Alex Gaynor
6f716e9e5f
[1.5.x] Fixed #5805 -- it is now possible to specify multi-column indexes. Thanks to jgelens for the original patch. Backport of 4285571c5a
.
2012-11-04 10:26:59 -08:00
Aymeric Augustin
d7688a010a
[1.5.x] Fixed #18963 -- Used a subclass-friendly pattern
...
for Python 2 object model compatibility methods.
Backport of fc10418
from master.
2012-11-03 22:08:05 +01:00
Aymeric Augustin
be6522561f
[1.5.x] Fixed #15152 -- Avoided crash of CommonMiddleware on broken querystring
...
Backport of 973f539
from master.
2012-11-03 21:28:49 +01:00
Claude Paroz
e51a9c0c94
[1.5.x] Prevented host resolution when running dev server
...
Refs #19075 , #2494 .
Thanks Karen Tracey for spotting the issue.
Backport of 3e98d98b6
from master.
2012-11-03 20:13:18 +01:00
Aymeric Augustin
b99707bded
[1.5.x] Fixed #19101 -- Decoding of non-ASCII POST data on Python 3.
...
Thanks Claude Paroz.
Backport of 095eca8
from master.
2012-11-03 13:07:02 +01:00
Ulrich Petri
f12fa7750c
[1.5.X] Fixed #17549 -- Added a clickable link for URLFields in admin change list.
...
Backport of ac2052ebc8
from master.
2012-11-03 11:59:16 +01:00
Preston Holmes
0131da0622
[1.5.x] Deprecated depth kwarg on select_related.
...
This is the start of a deprecation path for the depth kwarg on
select_related. Removing this will allow us to update select_related so
it chains properly and have an API similar to prefetch_related.
Thanks to Marc Tamlyn for spearheading and initial patch.
refs #16855
2012-11-02 22:03:55 -07:00
Tim Graham
c5d0f49dc2
[1.5.X] Added WizardView.file_storage exception message and docs
...
Thanks Danilo Bargen for the patch.
Backport of af7ea808d8
from master
2012-11-01 18:02:32 -04:00
Claude Paroz
a8c415f844
[1.5.x] Fixed #16678 -- Wrote tests for contrib.redirects app
...
Thanks Julien Phalip for the report.
Backport of d9213d09db
from master.
2012-11-01 19:49:08 +01:00
Andrew Godwin
f1be2c7a81
Fixed #19070 -- urlize filter no longer raises exceptions on 2.7
...
Thanks to claudep for the patch.
2012-10-31 11:01:39 +00:00
Aymeric Augustin
0dcaddb571
Fixed #17083 -- Allowed sessions to use non-default cache.
2012-10-31 09:51:19 +01:00
Claude Paroz
9c4ddea8e6
[1.5.x] Fixed #19174 -- Fixed capitalization errors in LANG_INFO
...
Thanks waldeinburg for the report.
Backport of 2f035a9
from master.
2012-10-30 23:07:31 +01:00
Claude Paroz
a24ffa52d0
[1.5.x] Fixed #17744 -- Reset default file storage with setting_changed signal
...
Backport of 9a0285134
from master.
2012-10-30 22:26:03 +01:00
Claude Paroz
5229ac20be
[1.5.x] Fixed #15714 -- Added note about capitalization of LANG_INFO name_local
...
Backport of 5dc4437df
from master.
2012-10-30 09:31:25 +01:00
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
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
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
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
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
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
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
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
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
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
ed96292833
[1.5.x] Bump version information and classifiers for 1.5 alpha release.
2012-10-25 14:18:06 -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
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
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
Carl Meyer
3541a10d49
Fixed #19164 -- Fixed diffsettings command broken in fix for #18545 .
...
Thanks Mario César for the report and draft patch.
2012-10-22 18:49:08 -06:00
Aymeric Augustin
ea57112d53
Reverted 6a64822bf4
.
...
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-23 00:11:17 +02:00
Aymeric Augustin
11a4b6d923
Merge pull request #460 from JanBednarik/ticket_19162
...
Fixed #19162 -- Wrong indentation.
2012-10-22 14:43:28 -07:00
Aymeric Augustin
6a64822bf4
Fixed #13222 -- Repeated iteration of HttpResponse
...
Thanks teepark for the report and grahamd for his insights.
2012-10-22 22:52:36 +02:00
Jan Bednařík
4cceb5cb31
Fixed #19162 -- Wrong indentation.
2012-10-22 19:23:19 +02:00
Claude Paroz
58cc3e8484
Fixed #19157 -- Removed test-only string from translatable strings
...
Thanks Alexey Boriskin for the report. Refs #18240 .
2012-10-22 09:31:28 +02:00
Alex Gaynor
b4066d7d21
Cleaned up the the http module. Moved all of the code from __init__.py to request.py, response.py and utils.py
2012-10-21 11:12:59 -07:00
Claude Paroz
22471a41ba
Merge pull request #457 from JanBednarik/ticket_19142
...
Fixed #19142 -- Language codes can include numbers (RFC 3066)
2012-10-21 10:35:01 -07:00
Preston Holmes
1a3ff63199
Updated error message for bad database engine
...
removing typo in the process. Thanks to Carlos Palol for the catch.
Closes pull 450
2012-10-21 07:41:59 -07:00
Alex Gaynor
6b3d2bc981
Merge pull request #444 from mitar/patch-2
...
Allow reversed iteration over SortedDict.
2012-10-20 20:39:49 -07:00
Jan Bednařík
e6b34193c5
Fixed #19142 -- Language codes can include numbers (RFC 3066).
2012-10-21 01:25:35 +02:00
Jan Bednařík
b87e2f46c8
Fixed #19151 -- Added missing methods to EmptyQuerySet.
...
Added values() and values_list() methods to EmptyQuerySet.
2012-10-21 00:19:38 +02:00
Aymeric Augustin
4b27813198
Fixed #7581 -- Added streaming responses.
...
Thanks mrmachine and everyone else involved on this long-standing ticket.
2012-10-20 20:05:11 +02:00
Aymeric Augustin
c2e19e26bc
Fixed #17856 -- Passed obj to get_inline_instances
...
Thanks ybon, quinode and sjaensch for the patch, and Tim Graham
for the review.
2012-10-20 15:49:52 +02:00
Claude Paroz
dcbf08cce5
Fixed #19094 -- Improved FakePayload to support write, len and string input
...
Thanks Ondrej Slinták for the suggestion.
2012-10-20 15:36:24 +02:00
Claude Paroz
dfd4a71751
Fixed #5611 -- Restricted accepted content types in parsing POST data
...
Thanks paulegan for the report and Preston Holmes for the review.
2012-10-20 14:56:16 +02:00
Claude Paroz
681550ca6d
Removed custom WSGIRequestHandler.get_environ
...
We probably historically customized it for good reasons, but
currently, the differences with upstream Python are not
significant any longer.
Also fixes #19075 for which a test has been added.
2012-10-20 13:55:13 +02:00
Russell Keith-Magee
7a908747a5
Fixed #19150 -- Added validation for USERNAME_FIELD being included in REQUIRED_FIELDS.
...
Thanks to Chris Pagnutti for the suggestion.
2012-10-20 11:51:15 +08:00
Russell Keith-Magee
04b53ebfb7
Fixed #19133 -- Corrected regression in form handling for user passwords.
...
Thanks to pressureman for the report, and to Preston Holmes for the draft patch.
2012-10-20 11:41:54 +08:00
Ramiro Morales
0b908b92a2
Fixed #8001 -- Made redirections after add/edit in admin customizable.
...
Also fixes #18310 .
2012-10-18 20:58:52 -03:00
Preston Holmes
9305c0e12d
Fixed a security issue related to password resets
...
Full disclosure and new release are forthcoming
2012-10-17 14:36:41 -07:00
Claude Paroz
9d2e1f065e
Reported OpenLayersWidget exceptions through logging
2012-10-17 11:59:10 +02:00
Russell Keith-Magee
bfcda7781a
Fixed #19130 -- Made some of the auth forms more flexible for user models.
2012-10-16 16:03:29 +08:00
Claude Paroz
08286ca5d9
Made use of assertXMLEqual in sitemaps tests
2012-10-15 23:05:40 +02:00
Claude Paroz
6b0a836c9c
Fixed assertXMLEqual when first node was a comment
2012-10-15 23:05:40 +02:00
Claude Paroz
2ee6a46696
Fixed #15753 -- Cleared cache between sitemaps tests
...
When caching was activated, test_simple_sitemap would fail
because the test result was fetched from cache.
Thanks lucho for the initial patch and krzysiumed@gmail.com for
the review.
2012-10-15 21:11:32 +02:00
Adrian Holovaty
05b8491622
Added DeprecationWarning for django.contrib.localflavor.
...
Note this is DeprecationWarning instead of PendingDeprecationWarning because we've decided
to accelerate this particular deprecation.
2012-10-15 09:37:29 -05:00
Mitar
c3fabb282d
Allow reversed iteration over SortedDict.
...
Iterators cannot be reversed easily without this method.
2012-10-15 04:16:46 -07:00
Claude Paroz
58365401c9
Updated base translation files
2012-10-15 11:17:06 +02:00
Claude Paroz
afbf913b90
Build context strings out of [u|n]gettext
...
The context strings in [n]pgettext functions should not be marked
themselves for translation.
2012-10-15 10:00:22 +02:00
Ludovic Delaveau
7a44dc555a
Fixed #16479 - Forms generated from formsets use ErrorList instead of supplied error_class
...
Patch with tests from charettes, updated.
2012-10-13 15:28:20 +01:00
Daniele Procida
cc83a4af0c
Added 'groups' to UserAdmin.filter_horizontal
...
Is there some reason it's not there already?
Our list of groups is very cumbersome to use with the standard widget.
2012-10-13 14:58:36 +01:00
Claude Paroz
fa2e28ccc4
Fixed #18484 -- Removed the div around the csrf token input
2012-10-13 11:30:09 +02:00
Russell Keith-Magee
b3b3db3d95
Fixed #19067 -- Clarified handling of username in createsuperuser.
...
Thanks to clelland for the report, and Preston Holmes for the draft patch.
2012-10-13 13:36:07 +08:00
Russell Keith-Magee
c433fcb3fb
Fixed #19077 , #19079 -- Made USERNAME_FIELD a required field, and modified UserAdmin to match.
2012-10-13 11:44:50 +08:00
Claude Paroz
24c7d828b0
Moved de_CH/formats.py in its correct location
...
Refs #16188 .
2012-10-12 23:18:42 +02:00
Brian Galey
95f7ea3af1
Fixed #19028 -- Support GeoJSON output with SpatiaLite 3.0+
2012-10-12 17:23:22 +02:00
Anssi Kääriäinen
b5f224e8e2
Fixed tests introduced for #15915
...
The tests didn't clean up properly. The commit that introduced the
errors was 8c427448d5
.
Thanks to Trac alias rizumu for spotting this.
2012-10-12 00:10:49 +03:00
Claude Paroz
501d793398
Fixed #19107 -- Workarounded message-encoding bug on Python < 2.6.6
...
Thanks Bernardo Pires for the report.
2012-10-11 21:40:14 +02:00
Ian Clelland
f7b69665fd
Use renamed threading event API in Python 3.3
...
Refs #19038 .
2012-10-10 19:57:16 +02:00
Claude Paroz
dcdaf9a079
Fixed error output from runserver
...
This has been missed in commit 822d6d6dab
(Refs #18325 ).
2012-10-10 17:56:25 +02:00
Justin Bronn
f578ee32fa
Mark the test for left/right lookup types as a known failure on PostGIS 2.0.
2012-10-09 17:20:51 -07:00
Anssi Kääriäinen
b625e8272b
Moved F() '&' and '|' to .bitand() and .bitor()
...
Done for consistency with Q() expressions and QuerySet combining. This
will allow usage of '&' and '|' as boolean logical operators in the
future. Refs #16211 .
2012-10-10 01:15:29 +03:00
Anssi Kääriäinen
a8b1861fc4
Revert "Fixed #16211 -- Added comparison and negation ops to F() expressions"
...
This reverts commit 28abf5f0eb
.
Conflicts:
docs/releases/1.5.txt
2012-10-10 01:15:29 +03:00
Michael Manfre
c2150d4d2c
Fixed #19096 -- Made can_return_id_from_insert more extendable
...
RETURNING is an extension of the SQL standard, which is not implemented
the same by all databases. Allow DatabaseOperations.return_insert_id to
return a None to allow for other 3rd party backends with a different
implementation.
2012-10-10 01:00:58 +03:00
Aymeric Augustin
0a0fe8f71d
Fix exception message from 3190abcd
. Refs #18153 .
...
Thanks Preston Holmes.
2012-10-09 22:06:55 +02:00
Aymeric Augustin
3190abcd75
Fixed #18153 -- Reverse OneToOne lookups on unsaved instances.
...
Thanks David Hatch and Anssi Kääriäinen for their inputs.
2012-10-09 21:36:35 +02:00
Claude Paroz
273b96ef9d
Fixed #17867 -- Made email validation pass with IDN domains
...
Thanks Pierre Matri for the report and the initial patch.
2012-10-09 15:08:32 +02:00
Claude Paroz
9a2bceed1a
Use smarter string decoding in GeoDjango
...
The first try to solve the Python 3 GIS encoding/decoding issue
was too naive. Using decode() on all read strings is bound to fail
as soon as a non-ascii string is concerned.
This patch is a little more clever, leaving ascii decoding when
plain ascii strings are expected, and allowing to specify a custom
encoding in DataSource hierarchy.
2012-10-08 18:24:42 +02:00
Anssi Kääriäinen
a62d53c032
Fixed #19087 -- Ensured query's base table is never LOUTER joined
...
This fixes a regression created by join promotion logic refactoring:
01b9c3d519
Thanks to Ivan Virabyan for the report.
2012-10-08 18:40:09 +03:00
Claude Paroz
4797ad80da
[py3] Decoded the parsed source file encoding in debug view
2012-10-08 10:06:56 +02:00