Anssi Kääriäinen
8c099ec3ec
[1.5.x] Fixed #19391 -- Oracle specific failure in tests
...
The failure was caused by using None as a choice for a CharField. To
avoid Oracle's "" <-> NULL handling the field type was changed to
IntegerField.
Backpatch of 632cf32b43
2012-12-04 23:00:17 +02:00
Julien Phalip
db455d6ff9
[1.5.x] Fixed the admin_filters tests for Postgres.
...
Backport of c196e01100
2012-12-04 10:39:49 -08: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
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
Anssi Kääriäinen
957de74ebe
[1.5.x] Converted a couple of assertEquals -> assertEqual
2012-11-28 23:55:47 +02: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
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
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
Claude Paroz
02ab5d180e
[1.5.x] Fixed test failure following capitalization fix in 2f035a972
...
Backport of f26b956e80
from master.
2012-11-25 19:55:23 +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
Aymeric Augustin
72231610b3
[1.5.x] Fixed two typos.
...
Backport of f89901d
from master.
2012-11-25 19:32:25 +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
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
Aymeric Augustin
f1afd57a32
[1.5.x] Used a django.test.TestCase for compatibility with @override_settings.
...
These tests were silently skipped.
Backport of 95edeab.
2012-11-24 22:05:25 +01:00
Anssi Kääriäinen
0d3ec8d0fb
[1.5.x] Fixed ordering-related failure in m2m_through_regress tests
...
Backpatch of dc569c8801
2012-11-24 16:05:30 +02: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
Russell Keith-Magee
2ecf3a9344
[1.5.x] Simplified the deletions performed by the swappable_models test.
...
This is required to allow the test to run without error under SQLite in the CI environment.
Backport of 18d7c1e
.
2012-11-24 15:08:28 +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
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
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
Aymeric Augustin
a892cd3191
[1.5.x] Tweak a test to avoid hitting a limit with SQLite.
...
Django cannot delete more than 999 objects at a time with SQLite.
Refs #16426 , #16039 .
Backport of 2875b5d
from master.
2012-11-23 10:19:09 +01:00
Tim Graham
42fa51c002
[1.5.X] Fixed #18974 - Warned against using models.permalink
...
Thanks dstufft for the draft patch.
Backport of 0e3690d230
from master
2012-11-22 16:10:42 -05: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
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
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
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
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
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
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
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
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
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
Claude Paroz
e70170c2cb
Cleaned up i18n regression tests
2012-10-22 14:45:41 +02:00
Aymeric Augustin
5e629a015e
Added tests for conditional_content_removal.
...
Refs #7581 . Thanks mrmachine.
2012-10-21 22:40:31 +02: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
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
d7c6a57d60
Used @override_settings in several tests.
2012-10-20 23:22:46 +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
Claude Paroz
cfb3eb2e3d
Used FakePayload in requests tests
2012-10-20 15:54:26 +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
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
4fb510fde4
Added missed poisoned host header tests
2012-10-18 11:10:46 -07:00
Claude Paroz
6b0a836c9c
Fixed assertXMLEqual when first node was a comment
2012-10-15 23:05:40 +02:00
Mitar
2811e543c6
Added tests for reversed iteration over SortedDict.
2012-10-15 12:12:10 -07: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
Adrian Holovaty
ffbc599f77
Removed country-specific localflavor tests.
...
They now live in separate django-contrib-XX packages.
2012-10-12 16:21:51 -05:00
Tim Graham
06f5da3d78
Fixed #16817 - Added a guide of code coverage to contributing docs.
...
Thanks Pedro Lima for the draft patch.
2012-10-11 06:11:52 -04:00
Anssi Kääriäinen
041ef9ed68
Removed some uses of F() expression & and |
...
Refs #16211
2012-10-10 03:31:11 +03:00
Michael Manfre
32ac067a6d
Fixed #18927 -- Fixed bulk_create tests when no has_bulk_insert
2012-10-10 01:39:43 +03: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
Anssi Kääriäinen
7f4dbdc036
Revert "Splitted expressions tests into smaller methods"
...
This reverts commit c2532825db
.
2012-10-10 01:15:29 +03:00
Claude Paroz
252cd271e8
Fixed test failure after IDN domain validation fix
...
Refs #17867 .
The address in test_email_regexp_for_performance used to take forever
(security issue), then was supposed to fail after the fix (commit 9f8287a3f
).
Now we are less strict with domain validation, due to new IDN domains,
hence the validation of this address pass now.
2012-10-09 22:44:43 +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
Aymeric Augustin
c9b4e9ac3a
Fixed #19095 -- invalid code in multidb tests.
2012-10-09 21:23:02 +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
8cb9968a91
Moved some email validation tests to validators tests
2012-10-09 15:08:32 +02:00
Claude Paroz
a8f888feb4
Improved assertion error messages in validators tests
2012-10-09 15:08:22 +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
Ramiro Morales
35e8dc5169
Removed ad-hoc support for usage of short names of built-in DB backends.
...
This non-standard naming was deprecated in Django 1.2.
2012-10-06 23:27:08 -03:00
Claude Paroz
117e99511e
Added assertXML[Not]Equal assertions
...
This is especially needed to compare XML when hash randomization
is on, as attribute order may vary. Refs #17758 , #19038 .
Thanks Taylor Mitchell for the initial patch, and Ian Clelland for
review and cleanup.
2012-10-06 13:14:50 +02:00
Russell Keith-Magee
cc337a74f1
Fixed #19069 -- Improved the error message when trying to query a swapped model.
...
Thanks to Preston Holmes for the suggestion.
2012-10-06 14:21:57 +08:00
Stephen Burrows
218abcc9e5
Fixed #14567 -- Made ModelMultipleChoiceField return EmptyQuerySet as empty value
2012-10-03 20:47:35 +03:00
Russell Keith-Magee
3b6f980bed
Fixed #19049 -- Ensure that swapped models aren't included in reverse field caches.
...
Thanks to Ivan Virabyan for the report.
2012-10-02 22:52:45 +08:00
Preston Holmes
55fa86a97f
Fixed postgres rollback issue with fixture test
2012-10-01 11:36:16 -07:00
Preston Holmes
e7723683dc
Fixed #9279 -- Added ignorenonexistent option to loaddata
...
Thanks to Roman Gladkov for the initial patch and Simon Charette for review.
2012-09-30 23:40:27 -07:00
Claude Paroz
8bd7b598b6
Fixed #18807 -- Made 404.html and 500.html optional
...
Thanks Aymeric Augustin for the report and Jannis Leidel for the
review.
2012-09-30 23:16:19 +02:00
Claude Paroz
08d675a98f
Fixed #7936 -- Added Last-Modified header to feeds
...
Thanks julianb for the report and the initial patch, and Roman
Gladkov for working on tests.
2012-09-30 22:40:25 +02:00
Anssi Kääriäinen
c2532825db
Splitted expressions tests into smaller methods
2012-09-30 17:51:11 +03:00
Anssi Kääriäinen
28abf5f0eb
Fixed #16211 -- Added comparison and negation ops to F() expressions
...
Work done by Walter Doekes and Trac alias knoeb. Reviewed by Simon
Charette.
2012-09-30 17:51:06 +03:00
Claude Paroz
f0f327bbfe
Fixed #18993 -- 'django' logger logs to console when DEBUG=True
...
Thanks Preston Holmes for the review.
2012-09-29 22:56:18 +02:00
Florian Apolloner
6a6f589bfe
Merge branch 'ticket15695'
2012-09-29 21:57:50 +02:00
Anssi Kääriäinen
1cd6e04cd4
Fixed #18676 -- Allow fast-path deletion of objects
...
Objects can be fast-path deleted if there are no signals, and there are
no further cascades. If fast-path is taken, the objects do not need to
be loaded into memory before deletion.
Thanks to Jeremy Dunck, Simon Charette and Alex Gaynor for reviewing
the patch.
2012-09-28 18:16:08 +03:00
Anssi Kääriäinen
3fcca0e947
Added a way to check if a signal has listeners
2012-09-28 18:10:52 +03:00
Claude Paroz
07ffe78143
Used get_current_site in comments feed class
2012-09-28 14:35:26 +02:00
Julien Phalip
b8244c654c
Fixed #18881 -- Made the context option in {% trans %} and {% blocktrans %} accept literals wrapped in single quotes. Thanks to lanyjie for the report.
2012-09-27 20:34:45 -07:00
Eduardo Cereto Carvalho
c9c9a56425
Added complementary regression test for commit c1729510
...
Also fixed #18660 .
2012-09-27 15:57:28 +02:00
Florian Apolloner
b946db5241
Fixed #15695 -- Added `ResolverMatch` to the request object.
2012-09-27 15:06:58 +02:00
Claude Paroz
3cbe686af6
Fixed #18675 -- Fixed was_modified_since with floating-point mtime
...
Thanks Simon Charette for the patch.
2012-09-26 21:12:56 +02:00
Claude Paroz
b3ee80a0cf
Fixed parse_http_date docstring and moved related tests
...
Refs #18675 .
2012-09-26 21:10:17 +02:00
Claude Paroz
bb7da7844f
Fixed #18845 -- Do not swallow AttributeErrors when running commands
2012-09-26 15:07:11 +02:00