Russell Keith-Magee
e471bbe209
[1.0.X] Fixed #10458 -- Corrected the `next_month` and `previous_month` context variables provided with the generic month_archive view. The value returned now matches the docstring and the generic views documentation. Thanks to fperetti for the report and initial patch.
...
Merge of r10556 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10557 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-13 13:26:31 +00:00
Russell Keith-Magee
960d3172f6
[1.0.X] Fixed #9522 -- Modified handling of values in base serializer so that field subclasses can define their own value_to_string() method for serialization. Thanks to Alex Koshelev for the report and initial patch.
...
Merge of r10554 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10555 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-13 12:40:43 +00:00
Russell Keith-Magee
6be2d903f3
[1.0.X] Fixed #9804 -- Corrected the introspection of sequence names. This was causing problems when flushing tables that had many-to-many relations through an inherited table. Thanks to jdimov for the report.
...
Merge of r10552 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10553 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-13 07:16:44 +00:00
Russell Keith-Magee
2c6e3b30b3
[1.0.X] Fixed #10237 -- Corrected the handling of self-referential m2m fields when using multi-table inheritance. Thanks to Justin Lilly for the report and patch.
...
Merge of r10550 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10551 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-13 03:07:59 +00:00
Malcolm Tredinnick
1e0c34dd7f
[1.0.X] Fixed #10692 -- Fixed DecimalField lookups for extreme values.
...
Backport of r10545 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10546 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-12 05:34:07 +00:00
Malcolm Tredinnick
f0c9bc5563
[1.0.X] Fixed #10675 -- Added unicode paragraph and line-sep handling to escapejs.
...
There were a couple of line breaking Unicode characters (\u2028 and
\u2029) that cause Javascript errors, at least in Firefox, if not
escaped. So now we do so. Based on a patch from rleland.
Backport of r10543 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10544 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-12 04:57:50 +00:00
Malcolm Tredinnick
6771f4e348
[1.0.X] Fixed #10267 -- Correctly handle IRIs in HttpResponse.build_absolute_uri().
...
Backport of r10539 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10540 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-12 03:54:49 +00:00
Malcolm Tredinnick
13475ed646
[1.0.X] Fixed #10369 -- Fixed auto-escaping inside "tran" and "blocktrans" tags.
...
Patch from Andrew Badr.
Backport of r10519 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10520 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-11 12:07:52 +00:00
Russell Keith-Magee
b6bd5ddc33
[1.0.X] Fixed #10571 -- Ensured that unicode POST data is correctly encoded by the test client. Thanks to Rick Wagner for his help identifying and fixing this problem.
...
Merge of r10513 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10514 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-11 09:27:04 +00:00
Jacob Kaplan-Moss
06f379bd5c
[1.0.X] Fixed #10753 -- Fixed regression in dispatcher after [10398]. Thanks for the patch and tests, minmax. Backport of r10497 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10503 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-10 21:40:38 +00:00
Jacob Kaplan-Moss
2ab40287bc
[1.0.X] Fixed #9640 , #10549 : BooleanFields with choices, a default, and null=False now correctly doesn't generate a blank option. Backport of r10500 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10502 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-10 19:57:11 +00:00
Jacob Kaplan-Moss
7a283f790c
[1.0.X] Converted model_fields regression tests into unittests. Backport of r10499 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10501 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-10 19:56:56 +00:00
Jacob Kaplan-Moss
ca5b624b05
[1.0.X] Fixed #10774 : accessing form media types in templates (i.e. ``{{ form.media.js }}``) now works. Thanks, tarequeh and Alex Gaynor. Backport of r10489 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10491 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-10 17:10:44 +00:00
Malcolm Tredinnick
dd7198701a
[1.0.X] Fixed #9315 -- Handle spaces in URL tag arguments.
...
Thanks Natalia Bidart and Matías Bordese for most of this patch.
Backport of r10462 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10463 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-10 04:49:00 +00:00
Malcolm Tredinnick
6c45765681
[1.0.X] Fixed #8515 -- Fixed validation of Polish REGON numbers.
...
Patch from Piotr Lewandowski.
Backport of r10460 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10461 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-10 01:13:29 +00:00
Jacob Kaplan-Moss
8c3d593b0f
[1.0.X] Fixed #7944 : date-based generic views no longer get confused with a numeric month format. Thanks to Justin Lilly and Alex Gaynor. Backport of r10457 and r10458 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-09 15:28:41 +00:00
Jacob Kaplan-Moss
e013c78ef8
[1.0.X] Fixed the test from [10447] to not depend on `os.listdir()` ordering. I always forget about that one; thanks, buildbot. Backport of r10449 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10450 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-08 19:42:01 +00:00
Jacob Kaplan-Moss
136d8b2854
[1.0.X] Fixed #8422 : FilePathField now respects required=False. Backport of r10447 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10448 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-08 18:55:06 +00:00
Jacob Kaplan-Moss
4f2259f539
[1.0.X] Added some tests to show that #9672 has been fixed ever since [10215]. Refs #9672 . Backport of r10440 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10441 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-07 22:13:30 +00:00
Jacob Kaplan-Moss
866574a854
[1.0.X] Fixed #9957 : feeds now respect time zone information provided by the pub date. Backport of r10435 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10436 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-07 21:21:17 +00:00
Jacob Kaplan-Moss
6951cece53
[1.0.X] Replaced a misplaced import from [10425].
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10426 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-07 19:53:42 +00:00
Jacob Kaplan-Moss
0c85192ebe
[1.0.X] Fixed #10585 : comment redirects built from the `next` parameter now work correctly when `next` already contains a query string. Backport of r10424 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10425 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-07 19:50:42 +00:00
Russell Keith-Magee
3931829c6e
[1.0.X] Fixed #10183 -- Corrected the handling of unicode in assertContains and assertNotContains. Thanks to trbs for the patch.
...
Merge of r10414 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10415 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-07 12:15:25 +00:00
Karen Tracey
bb558539ad
[1.0.X] Made a set of small test changes to avoid leaving temp files hanging around after running the test suite. First, fixed a couple of places where temp dirs were (or could be) created without later being deleted. Second, added a missing close() before unlink() since Windows raises an error on an attempt to remove an open file. Finally, in the file_uploads tests, avoided opening-by-name temporary files that we already have a descriptor for. Doing additional opens seems to run afoul of the Windows issue with deleting open files, so it generally works better to just seek back to 0 instead of calling open multiple times.
...
Backport/merge of r10406. Also updated svnmerge metadata.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10407 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-05 21:45:07 +00:00
Jacob Kaplan-Moss
734a3ac767
[1.0.X] Fixed the test case from [10399] to be more robust against the order in which test cases are executed. Backport of r10402 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10403 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-05 17:54:40 +00:00
Jacob Kaplan-Moss
33173e98c1
[1.0.X] Fixed #10080 : `call_command` now takes option defaults into account, sparing individual commands from any difference between `call_command` and being run from the shell. Thanks, Alex Koshelev. Backport of 10400 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10401 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-05 17:28:09 +00:00
Jacob Kaplan-Moss
35c30ee957
Fixed #9989 : fixed a subtle edge case where removing signals could break. Thanks, ferringb. Backport of r10398 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10399 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-05 17:21:25 +00:00
Karen Tracey
a9931e5655
[1.0.X] Fixed the test added for #9005 to use the e.args[0] instead of e.message. Exceptions didn't have 'message' before Python 2.5, and it was deprecated as of Python 2.6. args[0] works without error or DeprecationWarning from Python 2.3 through 2.6.
...
r10394 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10395 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-04 19:48:26 +00:00
Karen Tracey
2d20e5265a
[1.0.X] Fixed up the tests added for #9779 to run under Python 2.3, which doesn't have set.
...
Merge of the part of [10392] that applies to the 1.0.X branch.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10393 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-04 19:12:52 +00:00
Karen Tracey
cfe9b6f642
[1.0.X] Replace test use of assertTrue with failUnless. No matter how many times we try, Python 2.3 still doesn't recognize assertTrue.
...
[10390] from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10391 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-04 17:54:35 +00:00
Karen Tracey
055f9a0ebf
[1.0.X] Fixed #10254 : Changed the regex in get_valid_filename to allow unicode alphanumerics (thanks gulliver). Also updated the file_uploads test for this case to check the name after saving the uploaded file. As it was the test ensured that files with unicode characters in their names could be uploaded, but it wasn't actually ensuring that the unicode characters were preserved through save.
...
Backport of [10388]
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10389 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-04 17:42:43 +00:00
Jacob Kaplan-Moss
fd8965198f
[1.0.X] Fixed #9991 : correctly introspect PostgreSQL 'real' types. Backport of r10379 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10380 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-03 20:53:50 +00:00
Jacob Kaplan-Moss
fbffc2e943
[1.0.X] Fixed #10522 : accept tuples in `generic_inlineformset_factor(exclude)`. Thanks, mk. Backport of r10375 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10376 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-03 20:04:39 +00:00
Jacob Kaplan-Moss
9907495b3c
[1.0.X] Fixed #9546 : GenericRelations inherited from base models no longer query using the wrong content type. Backport of r10373 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10374 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-03 19:56:30 +00:00
Jacob Kaplan-Moss
4257feffe8
[1.0.X] Fixed #9520 : make the date filter fail silently for non-date values. Thanks, Andrew Badr and Eric Holscher. Backport of r10365 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10366 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-02 05:22:17 +00:00
Jacob Kaplan-Moss
38aeee4839
[1.0.X] Added tests for database introspection. Refs #9779 . Backport r10362 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10363 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-02 04:34:42 +00:00
Jacob Kaplan-Moss
c51722373b
[1.0.X] Fixed the test in [10351] to work reguardless of the test settings. Backport of r10355 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10356 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-02 01:41:56 +00:00
Jacob Kaplan-Moss
a080fcd1a6
[1.0.X] Fixed #9005 : don't wig out when reversing a URL if SETTINGS_MODULE isn't set. While I was there, I fixed #10599 by re-raising the original error message, which is almost always a better idea. Thanks, Eric. Backport of r10350 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10351 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-01 23:09:45 +00:00
Joseph Kocherhans
f58df036bd
[1.0.x] Backport of r10348 from trunk, plus missing tests that should have been in r10286.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-01 22:35:41 +00:00
Jacob Kaplan-Moss
eb24c7fd0c
[1.0.X] Fixed #9969 : choices with options groups (added in [7977]) now work correctly in the admin with list_display and list_filter. Thanks, ramiro. Backport of r10318 from trunk; thanks, cramm.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10340 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-01 21:17:54 +00:00
Jacob Kaplan-Moss
e047110657
[1.0.X] Fixed #10016 : the cache middleware no longer vomits when handed long URLs. Thanks, Matt Croydon. Backport of r10335 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10336 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-01 18:20:53 +00:00
Jacob Kaplan-Moss
6efe30672d
[1.0.X] Fixed #9474 : user_passes_test may now be applied multiple times. Backport of r10328 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10329 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-01 16:18:25 +00:00
Jacob Kaplan-Moss
7cbbd782e1
[1.0.X] Fixed #9473 : FormWizard now works with NullBooleanFields. As a bonus, we now have the beginnings of a test suite for FormWizard. Thanks, Keith Bussell. Backport of r10316 and r10319 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-01 15:07:31 +00:00
Jacob Kaplan-Moss
906f55bf09
[1.0.X] Fixed #7510 : the ModelAdmin now uses `self.queryset` instead of the default manager. Thanks, Alex Gaynor. Backport of r10314 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10320 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-01 15:07:13 +00:00
Jacob Kaplan-Moss
377cc9c850
[1.0.X] Fixed #10513 : floatformat now works with floatish things, not just real floats. Thanks, Alex. Backport of [10278] from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10299 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-31 22:04:15 +00:00
Jacob Kaplan-Moss
4a3139d63e
[1.0.X] Fixed #8847 , #10370 : added some missing methods to MultiValueDict after [8399]. Thanks, James Turk and rfk. Backport of r10241 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10298 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-31 22:02:37 +00:00
Jacob Kaplan-Moss
795697dc22
[1.0.X] Fixed #8746 : Check data in raw_id_fields more closely. Thanks, dgouldin
...
Backport of r10233 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10294 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-31 21:48:29 +00:00
Jacob Kaplan-Moss
67a5880162
[1.0.X] Fixed #10413 : RelatedManager.add no longer fails silenty when trying to add an object of the wrong type. Thanks, dgouldin.
...
Backport of r10226 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10293 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-31 21:42:47 +00:00
Jacob Kaplan-Moss
7475092c9f
[1.0.X] Fixed #10157 : correctly set the related objects pk when assigning a reverse OneToOne. Thanks, dgouldin.
...
Backport of r10224 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10291 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-31 21:15:55 +00:00
Joseph Kocherhans
00087ef006
[1.0.X] Fixed #9863 . A ForeignKey with editable=False to the parent in an inline no longer raises an exception. Thanks to keithb for the test case and Alex Gaynor for the patch. Backport of r10239 from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10287 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-31 20:39:54 +00:00