Malcolm Tredinnick
553a20075e
Fixed #4527 -- Changed the way errors are displayed in Form.as_p() to avoid
...
invalid XHTML constructs. Based on a patch from SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5518 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-23 06:19:26 +00:00
Malcolm Tredinnick
fc20eeec47
Fixed a Python 2.3 incompatibility I overlooked in [5516].
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5517 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-23 06:02:17 +00:00
Malcolm Tredinnick
5f5f1d913b
Fixed #4566 -- Added caching speed-ups to reverse URL matching. Based on a
...
patch from smoo.master@gmail.com .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5516 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-23 05:40:28 +00:00
Malcolm Tredinnick
dfea6bdfa5
Fixed #4630 -- Fixed some validation problems with SplitDateTimeField. Thanks
...
glin@seznam.cz and SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5515 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-23 03:32:59 +00:00
Malcolm Tredinnick
08aa5c585b
Fixed #4607 -- Tweaked checks for features missing in Python 2.3 to not assume
...
things Python does not guarantee. Patch from SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5514 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-23 03:18:22 +00:00
Malcolm Tredinnick
284c6ba44b
Fixed #4657 -- Fixed an error in an edge case of the urlizetrunc filter.
...
Thanks, SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5513 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-23 03:10:32 +00:00
Malcolm Tredinnick
880e3cfaa6
Backed out the changes in [5482] for a bit whilst some more investigation into
...
side-effects is done. Refs #4565 .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-22 07:15:04 +00:00
Adrian Holovaty
761c0a49e4
Fixed #4549 -- WSGI server now sets mime type correctly for admin media content. Thanks, Stefane Fermgier
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5502 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-20 06:16:56 +00:00
Adrian Holovaty
11a8084d4f
Fixed #4556 -- Admin showAddAnotherPopup JavaScript function can now handle URLs with GET attributes. Thanks for the patch, glin@seznam.cz
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5500 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-20 06:12:43 +00:00
Adrian Holovaty
bb5734ee30
Fixed #4584 -- Fixed improper </div> nesting in databrowse object_detail.html template.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5497 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-20 06:08:47 +00:00
Adrian Holovaty
13216e12dd
Fixed #4618 -- Fixed error in django.contrib.redirects new_path handling. Thanks, cephelo@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5494 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-20 06:01:16 +00:00
Luke Plant
18619a11ee
Fixed behaviour of contrib.auth.forms.PasswordResetForm when more than
...
one User have the same e-mail address.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5493 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-19 20:04:54 +00:00
Malcolm Tredinnick
b0fa08b9e0
Trivial formatting changes.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5486 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-17 09:46:04 +00:00
Malcolm Tredinnick
cc0c7fa6cd
Fixed #4576 -- Updated Swedish translation. Thanks, Ludvig Ericson.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5485 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-17 08:11:38 +00:00
Malcolm Tredinnick
2a34fbe043
Fixed #4506 -- Changed "regroup" template tag to use __eq__ instead of repr()
...
for grouping equality checking. Thanks, Brian Harring.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5484 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-17 07:33:18 +00:00
Malcolm Tredinnick
9b397ee50d
Changed ETag computation to first check if an ETag header already exists in the
...
response.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5483 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-17 07:21:09 +00:00
Malcolm Tredinnick
bccb8897e6
Fixed #4565 -- Changed template rendering to use iterators, rather than
...
creating large strings, as much as possible. This is all backwards compatible.
Thanks, Brian Harring.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5482 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-17 07:11:37 +00:00
Malcolm Tredinnick
44dd91ec6d
Fixed #4015 -- Changed login() and logout() messages to update request.user if
...
it is relevant. Thanks James Bennett, Vinay Sajip and Gary Wilson.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5472 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-15 01:53:40 +00:00
Malcolm Tredinnick
762e677d26
Fixed #3972 -- Updated docstring. Patch from SmileyChris.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5471 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-15 00:26:30 +00:00
Malcolm Tredinnick
4a61c2f912
Fixed #4531 -- Added a bit more randomness to session idents. Thanks, Frank
...
Tegtmeyer.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5470 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-15 00:22:16 +00:00
Malcolm Tredinnick
a4d773b580
Fixed a bug in the way file uploads were constructed. The new behaviour
...
should emulate a form upload more accurately.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5465 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-11 20:03:07 +00:00
Malcolm Tredinnick
ca6e4f345e
Fixed #4335 -- Added Python executable binary path and version to debug output.
...
Thanks, Pete Crosier.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5456 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-10 04:02:29 +00:00
Malcolm Tredinnick
86fd59cfa5
Fixed #4432 -- Fixed PostgreSQL sequence resetting in the case when a table has
...
no rows yet. Thanks, mrmachine.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5455 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-10 03:31:26 +00:00
Malcolm Tredinnick
03ecc00f6e
Fixed #4462 -- Use builtin reversed() function when available (in "for" tag).
...
Thanks, Brian Harring.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5454 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-10 03:11:10 +00:00
Malcolm Tredinnick
130c7eee80
Fixed #4517 -- Made sure that URL_VALIDATOR_USER_AGENT includes the up-to-date
...
Django version number. Thanks, James Wheare.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5451 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-10 02:00:46 +00:00
Malcolm Tredinnick
6fc10f50b0
Fixed #4518 -- Added handling of empty strings in typecast_decimal() for
...
SQLite's benefit. Thanks, Richard House.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5450 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-10 01:52:56 +00:00
Malcolm Tredinnick
4a1dfe4240
Fixed #4489 -- Made a small grammatical tweak to Dutch translation. Thanks,
...
Alper Çugun.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5449 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-10 01:47:02 +00:00
Russell Keith-Magee
16269c4d0a
Fixed #3523 -- Added list unpacking to for loops in templates. Thanks to SmileyChris and Honza Kral for their work.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5443 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-08 11:58:03 +00:00
Malcolm Tredinnick
7de9f79969
Fixed #3206 -- Fixed typo in [5407]. This time with bonus testing. Thanks,
...
Manuel Saelices.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5417 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-02 07:55:41 +00:00
Simon Willison
4cda993213
rollback on dummy database now has no effect (previously raised an error). This means that custom 500 error pages (and e-mailed exceptions) now work even if a database has not been configured. Fixes #4429 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5410 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-01 16:30:38 +00:00
Russell Keith-Magee
ea07351799
Fixed #3466 -- Fixed problem with specifyin a 'fields' argument to a JSON serializer. Also added documenation for the 'fields' argument.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5409 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-01 13:39:08 +00:00
Malcolm Tredinnick
8728e0f353
Fixed #4404 -- Fixed LatestCommentsFeed query problem. Thanks, SmileyChris.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5408 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-01 11:58:17 +00:00
Malcolm Tredinnick
63a1304f54
Fixed #3206 -- Changed ETag comparison to only return 304 when the normal
...
status code would be in the range 200 - 299. This matches RFC 2616
requirements. Based on a patch from Vinay Sajip.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5407 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-01 11:47:54 +00:00
Malcolm Tredinnick
dcc090e457
Fixed #4290 -- Added a warning about trailing slashes to the project settings
...
file. Thanks, mw@agami.at .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5404 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-01 10:00:00 +00:00
Malcolm Tredinnick
250b84dd0e
Fixed #4427 -- Ported daily_cleanup.py to use model API for greater
...
portability. Thanks, nick.lane.au@gmail.com .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5403 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-01 09:46:56 +00:00
Malcolm Tredinnick
9a40cfda16
Fixed #4445 -- Fixed an import problem in one of the Python 2.3-only code
...
paths. Thanks, Bryan Chow.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5398 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-01 01:44:47 +00:00
Adrian Holovaty
603d5cc05a
Fixed #4441 -- Made a small optimization to the regroup template tag implementation. Thanks, ferringb@gmail.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5392 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-31 15:32:37 +00:00
Russell Keith-Magee
0e7a49fa1e
Fixed #4426 -- Renamed duplicate doctest module _doctest, and documented the fact that it isn't an _exact_ copy of the doctest from Python 2.4.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5391 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-31 13:18:12 +00:00
Jacob Kaplan-Moss
bf2e62aa3c
Fixed #3050 : you can now use extra(select=...) with values(). Thanks, Honza Kral
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5385 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-31 02:22:41 +00:00
Malcolm Tredinnick
0c4385bb02
Added new TEST_DATABASE_CHARSET and TEST_DATABASE_COLLATION settings to ensure
...
that databases are created with the expected encoding during testing.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5380 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-29 12:42:08 +00:00
Russell Keith-Magee
d9f6470f2d
Fixed #1278 -- Added a context processor that puts MEDIA_URL in the context, and added that context processor to the default set. Thanks to Ubernostrum for the patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5379 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-29 11:09:24 +00:00
Russell Keith-Magee
c84ff156c1
Fixed a serialization problem with objects that have a foreign key on an object whose primary key is a OneToOneField.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5371 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-28 05:41:32 +00:00
Malcolm Tredinnick
d66b56f53b
Report an error if urlpatterns contain a string view name and it is empty.
...
Refs #4319 .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5360 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-27 11:09:52 +00:00
Malcolm Tredinnick
12771614db
Fixed #4323 -- Added the ability to display author names without email
...
addresses to RSS 2.0 feeds.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5357 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-26 10:36:36 +00:00
Malcolm Tredinnick
30d4e9424d
Fixed #4372 -- Fixed a small typo in an error message. Thanks, John Shaffer.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5355 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-26 09:48:50 +00:00
Malcolm Tredinnick
611585665a
Fixed #4377 -- Small tweak to the German translation. Thanks, Frank Tegtmeyer.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5350 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-26 09:07:06 +00:00
Malcolm Tredinnick
8d3b587012
Fixed #4383 -- Updated Catalan translation. Thanks, Marc Fargas.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-26 09:05:11 +00:00
Malcolm Tredinnick
a901b44c15
Fixed #3718 -- Exposed form errors to cleaning methods as soon as they are
...
available. Patch from Gary Wilson.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5348 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-26 09:02:17 +00:00
Malcolm Tredinnick
1c42c7cade
Fixed #4297 -- Made form errors available to sub-classes. Thanks, Gary Wilson.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-26 08:53:22 +00:00
Malcolm Tredinnick
198127a0f2
Fixed #4390 , #4385 -- Made it clear that cleaned_data wasn't being assigned to
...
twice without reason. Also make sure that if field specific clean functions
fail, the form-wide field cleaning is removed from cleaned_data.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5346 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-26 08:47:15 +00:00
Malcolm Tredinnick
dfdf7bdc5e
Fixed #4378 -- Fixed a broken format string.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5333 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-24 12:28:53 +00:00
Jacob Kaplan-Moss
1e70426619
Fixed #3397 (again): admin_order_field is now displayed correctly in the admin views. Thanks, kent37@tds.net
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5318 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-22 16:56:53 +00:00
Malcolm Tredinnick
9eada8ad62
Fixed #4357 -- Removed a type conversion that was only introduced in
...
MySQLdb-1.2.1 (and was introduced to Django in [5302]).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5313 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-22 04:31:19 +00:00
Malcolm Tredinnick
d15809c3cd
Removed some cruft left over from fixing problems in the move to DecimalField
...
([5302]).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5311 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-21 23:26:36 +00:00
Malcolm Tredinnick
4c53116144
Fixed #4338 -- Added pop() method to SessionWrapper. Thanks, Gary Wilson.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5306 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-21 04:03:53 +00:00
Malcolm Tredinnick
fd21702b2e
Fixed #4347 -- Updated Catalan translation. Thanks, Marc Fargas.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5305 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-21 03:55:24 +00:00
Malcolm Tredinnick
20ba237a30
Fixed #3673 -- Fixed format string errors in Telugu translation. Thanks
...
pavithran.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5304 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-21 03:51:37 +00:00
Malcolm Tredinnick
92c35a0617
Fixed #2365 , #3324 -- Renamed FloatField to DecimalField and changed the code
...
to return Decimal instances in Python for this field. Backwards incompatible
change.
Added a real FloatField (stores floats in the database) and support for
FloatField and DecimalField in newforms (analogous to IntegerField).
Included decimal.py module (as django.utils._decimal) from Python 2.4. This is
license compatible with Django and included for Python 2.3 compatibility only.
Large portions of this work are based on patches from Andy Durdin and Jorge
Gajon.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5302 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-21 01:29:58 +00:00
Adrian Holovaty
03966f077b
Fixed #4348 -- Updated Google sitemap ping code. Thanks, marijn
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5300 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-20 20:47:18 +00:00
Russell Keith-Magee
edc0fcdf7c
Moved markup tests into their contrib directory.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-20 04:08:14 +00:00
Russell Keith-Magee
c9aa4c71ac
Modified the django system test script to search for tests in the contrib apps.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5296 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-20 03:51:21 +00:00
Malcolm Tredinnick
d8db013eea
Fixed #4330 -- Fixed typo when retrieving field names. Patch from Marc Fargas.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5293 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-19 18:54:35 +00:00
Malcolm Tredinnick
534c0d8442
Fixed #4316 -- Added docstring and tests for django.newforms.utils.flatatt().
...
Thanks, Gary Wilson.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5291 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-19 18:49:35 +00:00
Malcolm Tredinnick
9ed4217a57
Fixed #4337 -- Added pop() method to QueryDict. Thanks, Gary Wilson.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5289 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-19 18:34:00 +00:00
Malcolm Tredinnick
ce9aca5823
Fixed #4343 -- Fixed a couple of format errors in the Argentinean Spanish
...
translation. Thanks, Ramiro Morales.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5288 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-19 17:59:42 +00:00
Malcolm Tredinnick
5967e63bd8
Fixed #4308 -- Updated Russian translation. Thanks, Vasiliy Stavenko.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5287 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-19 17:57:43 +00:00
Adrian Holovaty
4868af8a57
Fixed #4318 -- Fixed unused imports and other various style tweaks in newforms. Thanks, Gary Wilson
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5263 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-16 21:20:35 +00:00
Russell Keith-Magee
a10e73ac30
Fixed some documentation strings in django-admin, and updated the bash completion script.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5245 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-15 11:39:00 +00:00
Malcolm Tredinnick
b996e214c0
Changed the fix from [5231] so that the backwards-incompatibility is made more
...
obvious and everything still has nice names.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 16:24:51 +00:00
Russell Keith-Magee
41fbd35613
Added check to prevent sequence reset if no fixtures are loaded.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5234 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 14:24:30 +00:00
Russell Keith-Magee
c38a93e4d9
Fixed #4288 -- Modified serializers to pay attention to the to_field attribute on ForeignKeys. Thanks to Sandro Dentella for the report and the helpful test case.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5232 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 14:14:49 +00:00
Malcolm Tredinnick
f15036ae6d
Renamed form-specific cleaning methods to be do_clean_*, rather than clean_*.
...
This avoids a name clash that would occur when you had a form field called
"data" (because clean_data is already a dictionary on the Form class).
Backwards incompatible change.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5231 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 14:02:36 +00:00
Russell Keith-Magee
c89dc9cfa0
Fixed some incorrect reporting of error messages in assertRedirects, and added test cases to validate.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5228 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 11:07:14 +00:00
Malcolm Tredinnick
5152b55b38
Fixed #4283 -- Added Bulgarian translation. Thanks Jordan Dimov.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5225 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 08:12:03 +00:00
Malcolm Tredinnick
d362799721
Removed a stray import that snuck into [5211].
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-13 08:19:11 +00:00
Malcolm Tredinnick
c7d7b6da3c
Fixed the test harness to work with Python 2.3 again (tested that it still
...
works with 2.4 and 2.5 as well).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5211 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 16:53:27 +00:00
Malcolm Tredinnick
3780a4532c
Fixed a compatibility problem with Python 2.3.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5210 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 16:05:51 +00:00
Russell Keith-Magee
2345029d0d
Fixed #4018 -- Added code to allow callables as initial data in newforms. Thanks for the patch, David Danier.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5209 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 15:50:32 +00:00
Russell Keith-Magee
fd17163481
Fixed #4231 -- Added quoting for sequence names on sequence reset for PostgreSQL. This was causing difficulties if table or application names were capitalized. Thanks for the report, Mark Jarecki.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5204 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 15:21:33 +00:00
Russell Keith-Magee
6aa5091d58
Added docs for form_for_model and form_for_instance, and added a fields argument so it is easy to create forms from a subset of model fields.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5202 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 14:42:46 +00:00
Malcolm Tredinnick
7c0ef82752
Fixed #4276 -- Fixed a crash in the lorem tag when more than 20 words were
...
requested.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5190 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-11 09:44:13 +00:00
Malcolm Tredinnick
ee227a8507
Added native eol-style settings to necessary files. Refs #4276 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5189 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-11 09:13:37 +00:00
Malcolm Tredinnick
f9982c5c08
Fixed #4270 -- Don't permit deleting of items from an immutable QueryDict.
...
Thanks, Gary Wilson.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5187 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-11 08:22:06 +00:00
Malcolm Tredinnick
8562216c40
Fixed #4275 -- Fixed a couple of typos in the Simplified Chinese translation.
...
Thanks, imskyee@gmail.com .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5186 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-11 08:18:41 +00:00
Russell Keith-Magee
244a5d0006
Added the actual assertFormError changes, accidentally omitted from [5181].
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5182 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-10 13:48:18 +00:00
Russell Keith-Magee
c7db4beb62
Fixed import error handling when application tests are stored in a tests directory, rather than a tests.py file.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5180 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-10 12:07:34 +00:00
Russell Keith-Magee
5c68ab6e29
Added configurable arguments to assertRedirects and assertContains to allow for other response status codes. Thanks for the suggestion, Jiri Barton.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5179 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-10 11:27:59 +00:00
Malcolm Tredinnick
606f387f49
Fixed #4240 -- Updated Latvian translation. Thanks, Gacha.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5177 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-09 13:41:48 +00:00
Malcolm Tredinnick
c95a48b802
Fixed #4229 -- Updated Hebrew translation. Thanks, Meir Kriheli.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-09 13:36:22 +00:00
Malcolm Tredinnick
dabae55913
Fixed #4132 -- Updated Polish translation. Thanks, Michal Chruszcz.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5175 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-09 13:32:20 +00:00
Russell Keith-Magee
469314e7bc
Added redirection for email services during test conditions.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5173 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08 11:19:34 +00:00
Malcolm Tredinnick
1c53661bd1
Moved generic relations into django.contrib.contenttypes, since it depends on
...
that to work. Backwards incompatible change.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5172 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08 10:59:35 +00:00
Malcolm Tredinnick
0839a0046a
Fixed #4041 -- Added a __contains__ method to cache backends. Thanks, Gary
...
Wilson and SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5171 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08 04:13:46 +00:00
Malcolm Tredinnick
d1b0d34dc6
Fixed #4200 -- Made get_admin_log template tag behave according to its
...
docstring (user specifier is optional). Thanks, Bryan Chow.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5170 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08 03:56:44 +00:00
Malcolm Tredinnick
faa31732ca
Fixed #3753 -- Allow optional display of invalid variable name in
...
TEMPLATE_STRING_IF_INVALID. Thanks, Matt McClanahan.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5167 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08 03:36:16 +00:00
Malcolm Tredinnick
93e2f246fd
Fixed #4144 -- Only check sys.modules when required during Model class
...
construction. Patch from Marty Alchin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5163 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08 02:56:18 +00:00
Malcolm Tredinnick
abff821f14
Fixed #4197 -- Added some updates to the German translation. Thanks, Thomas
...
Steinacher.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5162 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08 02:50:41 +00:00
Russell Keith-Magee
f073797f4c
Added assertFormError, assertTemplateUsed and assertTemplateNotUsed for use during unit testing.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5156 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-07 12:34:18 +00:00
Adrian Holovaty
1889db475d
Fixed comma splice in error message introduced in [5133]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5154 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-06 04:12:08 +00:00
Russell Keith-Magee
36b164d838
Backwards incompatible change: Changed the way test.Client.login operates. Old implemenation was fragile, and tightly bound to forms. New implementation interfaces directly with the login system, is compatible with any authentication backend, and doesn't depend upon specific template inputs being available.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5152 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-05 15:16:15 +00:00