Commit Graph

3596 Commits

Author SHA1 Message Date
Julien Phalip 699a67480a [1.5.x] Modified a staticfiles test to use a unicode character that has just one single representation. The previously used character (ş) has two different representations (u'\u015f' and u's\u0327'), which caused spurious failures when the tests were run across multiple platforms (e.g. on a Linux VM hosted on a Mac). 2012-11-21 09:54:02 +01: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
Tom Christie d881275341 [1.5.x] Test for `ListView.page_kwarg`
(cherry picked from commit f824a95177)
2012-11-17 21:30:47 +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
Jannis Leidel 0aaaad14b7 [1.5.x] Fixed typo introduced in 0e3f7814d7. 2012-11-17 15:59:34 +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
Anssi Kääriäinen a1fd9555f2 [1.5.x] Fixed #18347 -- Removed autofield raw SQL inserts from tests
Backpatch of 71e14cf3aa
2012-11-15 17:39:39 +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
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
Claude Paroz bf35fb6006 [1.5.x] Merged pagination tests
It is simpler/cleaner to have all pagination tests in a single file.
Refs #16122.
Backport of 45802e1248 from master.
2012-11-09 19:44:13 +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 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
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
Anton I. Sipos 81342c28c6 [1.5.x] Fixed #18949 -- Fix broken test interactions in ModelForms tests
A test in Model Forms test was specifically referring to a fixed
primary key, which was now being used up in a newly committed.
This has been worked around by specifying a higher primary
key.
2012-11-04 18:37:01 -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 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
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
Tim Graham ffc649df88 [1.5.X] Fixed #15361 - Documented performance considerations for QuerySet.get()
Thanks mmcnickle for the patch.

Backport of feaf9f279a from master
2012-11-02 17:59:51 -04: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
Claude Paroz 2f9f211da8 [1.5.x] Prevented file_upload tests to leave files behind
Refs #19206.
Backport of 73245b3 from master.
2012-10-30 22:29:09 +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 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
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
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
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 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
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
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 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
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 3deed32394 [1.5.x] Avoid dependence on exact Python exception messages
Backport of a8bbae517963d7cc489fb35e51288e4f0efd8207 from master
2012-10-26 02:40:05 +01:00