Anssi Kääriäinen
498a5de07b
[1.4.x] Fixed #19645 -- Added tests for TransactionMiddleware
...
Backpatch of f556df90be
. Backpatching
these tests so that it will be easier to backpatch the fix for #19707 .
2013-02-10 17:34:27 +02:00
Florian Apolloner
f2530dcb17
[1.4.X] Fixed a test failure in the comment tests.
...
Backport of 1eb0da1c5b
from master.
2012-12-10 23:37:12 +01:00
Florian Apolloner
319627c184
[1.4.X] Fixed a security issue in get_host.
...
Full disclosure and new release forthcoming.
2012-12-10 22:14:16 +01:00
Florian Apolloner
b2ae0a63ae
[1.4.X] Fixed #18856 -- Ensured that redirects can't be poisoned by malicious users.
2012-12-10 22:14:16 +01:00
Julien Phalip
8c9a8fd5c4
[1.4.x] Fixed the admin_filters tests for Postgres.
...
Backport of c196e01100
2012-12-04 10:41:22 -08:00
Sebastián Magrí
c72172244e
[1.4.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 20:58:54 -08:00
Anssi Kääriäinen
3e4058be9f
[1.4.x] Fixed ordering-related failure in m2m_through_regress tests
...
Backpatch of dc569c8801
2012-11-24 16:10:16 +02:00
Aymeric Augustin
046300c43b
[1.4.x] Restored Python 2.5 compatibility in m2m_through_regress tests.
...
Refs #18823 .
2012-11-24 09:49:30 +01:00
Anssi Kääriäinen
c7dcb1d808
[1.4.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:28:25 +02:00
Anssi Kääriäinen
37c87b785d
[1.4.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:38:26 +02:00
Preston Holmes
773a29295a
Added missed poisoned host header test changes
2012-10-18 11:18:25 -07:00
Julien Phalip
cc0478606a
[1.4.x] Fixed #18881 -- Made the context option in {% trans %} and {% blocktrans %} accept literals wrapped in single quotes. Thanks to lanyjie for the report.
2012-10-13 10:51:53 -07:00
Tim Graham
3ac70a5907
[1.4.X] Fixed #16817 - Added a guide of code coverage to contributing docs.
...
Thanks Pedro Lima for the draft patch.
Backport of 06f5da3d78
from master
2012-10-11 06:14:24 -04:00
Julien Phalip
336dfc3413
[1.4.X] Fixed #18530 -- Fixed a small regression in the admin filters where wrongly formatted dates passed as url parameters caused an unhandled ValidationError. Thanks to david for the report.
2012-09-15 16:33:56 -07:00
Anssi Kääriäinen
2326860851
[1.4.x] Fixed #17788 -- Added batch_size argument to qs.bulk_create()
...
The qs.bulk_create() method did not work with large batches together
with SQLite3. This commit adds a way to split the bulk into smaller
batches. The default batch size is unlimited except for SQLite3 where
the batch size is limited to 999 SQL parameters per batch.
Thanks to everybody who participated in the discussions at Trac.
Backpatch of 29132ebdef
from master (with
documentation changes removed).
2012-09-02 19:17:15 +03:00
Claude Paroz
92f7af3c36
[1.4.x] Fixed #18212 -- Standardized arguments of GenericIPAddressField
...
Unlike other model fields, the newly introduced (1.4)
GenericIPAddressField did not accept verbose_name and name as the
first positional arguments. This commit fixes it.
Thanks Dan McGee for the report and the patch.
Backport of 306d34873c
from master.
2012-09-01 18:39:51 +02:00
Florian Apolloner
e34685034b
[1.4.x] Fixed a security issue in http redirects. Disclosure and new release forthcoming.
...
Backport of 4129201c3e
from master.
2012-07-30 22:03:33 +02:00
Florian Apolloner
1c13cc023f
[1.4.x] readd imports deleted in 4d2fdd
2012-06-04 13:24:05 +02:00
Julien Phalip
4d2fdd4185
[1.4.X] Fixed #18379 -- Made the sensitive_variables decorator work with object methods.
2012-06-03 23:59:01 -07:00
Michael Newman
0f69a16785
[1.4.x] Fixed #18135 -- Close connection used for db version checking
...
On MySQL when checking the server version, a new connection could be
created but never closed. This could result in open connections on
server startup.
Backport of 4423757c0c
.
2012-05-27 21:51:03 +03:00
Aymeric Augustin
a3c8201b77
[1.4.x] Fixed #17976 -- Made forms.BooleanField pickleable.
...
Backport of 9350d1d59c
from master.
This was a regression in Django 1.4.
Thanks bronger for the report and claudep for the patch.
2012-05-08 23:20:05 +02:00
Claude Paroz
3f77b84489
[1.4.X] Fixed #18027 -- Removed an HTMLParser test that doesn't raise any more in recent Python versions. Thanks Arfever and Anssi Kaariainen for the report and the patch.
...
Backport of r17900 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.4.X@17901 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-11 21:27:18 +00:00
Aymeric Augustin
01dfe35b38
[1.4.X] Fixed #18090 -- Applied filters when running prefetch_related backwards through a one-to-one relation. Backport of r17888 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.4.X@17889 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-10 06:06:14 +00:00
Julien Phalip
a6ba67ffd1
[1.4.X] Fixed #18086 -- Restored '-pk' as the default order in the admin changelist. This rectifies a slight change in behavior introduced in Django 1.4 and r17635.
...
Backport of r17881 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.4.X@17882 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-09 04:32:42 +00:00
Julien Phalip
aafa73db54
[1.4.X] Fixed #17972 -- Ensured that admin filters on a foreign key respect the to_field attribute. This fixes a regression introduced in [14674] and Django 1.3. Thanks to graveyboat and Karen Tracey for the report.
...
Backport of r17854 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.4.X@17858 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-31 18:46:18 +00:00
Aymeric Augustin
e78d6b406b
Reverted parts of r16963 to fix a regression on the creation of permissions on proxy models. Refs #17904 . Thanks koenb for the report and claudep for the patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17776 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-22 08:49:48 +00:00
Aymeric Augustin
1e28567e0d
Fixed #17937 -- Avoided an error in the timeuntil filter when it receives a date object. Thanks Dmitry Guyvoronsky for the report.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17774 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-22 07:29:39 +00:00
Jannis Leidel
4219e2b7f8
Fixed #17920 -- Actually pass the full path of a newly created project or app in the template context as mentioned in the startproject docs. Many thanks to Preston Holmes for the initial patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17773 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-21 22:29:32 +00:00
Aymeric Augustin
358c5a1c2a
Fixed #17932 -- Tweaked the admin_changelist tests because Oracle doesn't like columns named 'number'.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17767 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-19 12:52:15 +00:00
Aymeric Augustin
c8e2f7591d
Fixed #17931 -- Accepted aware datetimes to set cookies expiry dates. Thanks jaddison for the report.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17766 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-18 20:58:22 +00:00
Claude Paroz
c7cc4cfb9e
Fixed #16138 -- Made FormMixin get_initial return a copy of the 'initial' class variable. Thanks hanson2010, wilfred@potatolondon.com and agriffis for their work on the patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17765 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-17 22:31:03 +00:00
Julien Phalip
1ff9be1144
Fixed #17828 -- Ensured that when a list filter's `queryset()` method fails, it does so loudly instead of getting swallowed by a `IncorrectLookupParameters` exception. This also properly fixes #16705 , which hadn't been addressed correctly in [16705].
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17763 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-17 21:45:36 +00:00
Claude Paroz
f0b9bb2ef9
Do not unconditionally add extra_tests when testing geodjango.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17761 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-17 17:44:42 +00:00
Carl Meyer
e57bedee78
Fixed #17909 - ensure GeoDjango tests have the templates they need. Thanks Nate Bragg for the report.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17757 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-17 04:39:23 +00:00
Carl Meyer
ddd53dafb5
Fixed #17918 - Handle proxy models correctly when sorting deletions for databases without deferred constraints. Thanks Nate Bragg for the report.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17756 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-17 01:24:39 +00:00
Carl Meyer
edcaf8b7ff
Reorganized proxy-delete tests for easier addition of new tests. Refs #16128 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17755 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-16 23:27:40 +00:00
Julien Phalip
a395e531de
Ensured that some staticfiles tests get properly cleaned up on teardown. Thanks to Claude Paroz for the patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17747 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-16 00:29:11 +00:00
Julien Phalip
ea9d96739f
Added a `with_statement` import to a test for Python 2.5 compatibility.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17746 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-15 18:55:08 +00:00
Luke Plant
b018128ea5
Fixed #17838 - prefetch_related fails for GenericForeignKeys when related object id is not a CharField/TextField
...
Thanks to mkai for the report and debugging, and tmitchell and Przemek
Lewandowski for their work on the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17744 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-15 15:06:57 +00:00
Ramiro Morales
a935e83443
Reverted r16386 because it replaced a brittle method with another not less
...
arbitrary method when the test client checks for the presence of the bundled
session backends+session middleware combination.
We will revisit the issue soon, probably to make these checks even less strict.
Refs #7836 , #16605
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17739 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-15 02:46:07 +00:00
Ramiro Morales
eb9eaa6d71
Tweaked tests from r17702 to run only when using sqlite3 DB(s).
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17733 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-14 10:58:23 +00:00
Aymeric Augustin
43cb17bbe5
Added cleanup code to the proxy_model_inheritance tests. Refs #12286 , #16329 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17712 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-14 08:40:35 +00:00
Aymeric Augustin
4b14546215
Fixed #17895 -- Made override_settings send the setting_changed signal both when a setting is overridden and when it's restored.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17708 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-13 23:02:31 +00:00
Ramiro Morales
69b96f824d
Fixed #16329 -- Fixed detection of transaction-handling capabilities when all test databases are sqlite3, in-memory.
...
Thanks canassa for the report and agriffis (#17762 ) and lrekucki (in #17758 ) for their contribution to the fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17702 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-13 17:52:48 +00:00
Claude Paroz
dd13596944
Fixed #17768 -- Add a comment about an expected failure in generic_views tests
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17700 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-13 16:33:56 +00:00
Aymeric Augustin
aa900c39a8
Fixed #17882 -- Reopened the database connection when a test changes time zone settings. Thanks brodie for the report.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17699 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-13 06:59:04 +00:00
Jannis Leidel
f7daa38a00
Fixed #10498 (again) -- Made sure the improvements done in r17641 have a smaller impact on speed. Thanks to Anssi Kääriäinen for the patch and Jonas Obrist for reviewing.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17698 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-13 03:48:20 +00:00
Jannis Leidel
0ee801e360
Fixed #17857 -- Stopped CachedStaticFilesStorage from creating absolute URLs unnecessarily. Thanks, tgecho.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17697 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-13 03:48:11 +00:00
Jannis Leidel
7487c74020
Fixed #17865 -- Strip whitespaces from the paths when using the CachedStaticFilesStorage backend.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17696 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-13 03:48:03 +00:00
Karen Tracey
d174216587
Refs #17876 : enhanced new test to actually test underlying function, not just ensure trying to use it does not raise an exception. Thanks Przemek Lewandowski.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17695 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-13 01:01:22 +00:00