Commit Graph

2769 Commits

Author SHA1 Message Date
Adrian Holovaty 907241e299 Fixed #2455 -- Added newforms USStateSelect widget in django.contrib.localflavor.usa
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4545 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-20 00:30:22 +00:00
Adrian Holovaty b8fa80bd00 Fixed #3510 -- newforms validation errors are now HTML-escaped for HTML output. Thanks, scott@staplefish.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4544 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-19 23:54:55 +00:00
Adrian Holovaty 7cb7541971 Improved newforms to handle wacky characters in Field help_text
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4543 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-19 23:43:14 +00:00
Malcolm Tredinnick babc0793e3 Fixed behaviour of admin interface (and AddManipulator) when
min/max_num_in_admin is specified without num_in_admin. A consequence of
changes in [4500].


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4542 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-19 04:18:46 +00:00
Russell Keith-Magee fb509ee8d3 Fixed #2916 -- Moved syncdb call out of simple test runner and into create_test_db, to match documentation and simplify testing process for people using other test frameworks. Thanks, remco@diji.biz.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4541 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-18 08:07:18 +00:00
Russell Keith-Magee 895633a80d Fixed #3210 -- Modified test Client.login() to use urlparse, allowing absolute URLs in the Location header. Thanks, Ben Dean Kawamura.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4540 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-18 08:02:00 +00:00
Adrian Holovaty 2fe6476180 Copy edited new docs in docs/model-api.txt from [4535]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-18 04:44:17 +00:00
Adrian Holovaty fa159c8de9 Copy edited new docs in docs/request_response.txt from [4534]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4538 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-18 04:42:15 +00:00
Malcolm Tredinnick 795d832a01 Fixed #3259 -- Fixed problem with prepopulate_from for fields containing
underscores in their name. Patch from Gary Wilson.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4537 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-17 06:14:23 +00:00
Malcolm Tredinnick f5ede9c5c8 Fixed #3067 -- Improved caching of machine hostname to increase server restart
times. Thanks SmileyChris.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4536 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-17 06:01:17 +00:00
Malcolm Tredinnick ed3d787eda Fixed #2568 -- Added documentation for the permalink() decorator. Based on a
patch from Joeboy.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4535 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-17 05:51:45 +00:00
Malcolm Tredinnick 369d9ffa3d Fixed #2906 -- Added documentation about HTTP error code returns and the
default 404 and 500 code error handlers. Based on a patch from Marc Fargas.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4534 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-17 04:59:49 +00:00
Malcolm Tredinnick 892202b319 Added workaround for loading duplicate model classes in management shell. Patch
from Curtis Thompson and Benjamin Slavin. Refs #1796.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4533 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-17 01:38:03 +00:00
Malcolm Tredinnick 440d318d86 Fixed a warning generated by the (empty) Latvian djangojs.po file.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4532 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-17 01:29:34 +00:00
Malcolm Tredinnick 6034d3c70f Fixed #3500 -- Updated Japanese translation. Thanks, Makoto Tsuyuki.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4531 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-17 01:27:55 +00:00
Malcolm Tredinnick c5cd06e505 Fixed #1138 -- Applied a small fix to the Dutch translation. Thanks Niels Poppe.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4530 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-17 01:24:10 +00:00
Russell Keith-Magee d6d51c9546 Fixed #3160 -- Added the ability to control the content type in a test client POST request. This is to allow easier testing of json-rpc/xml-rpc/soap etc interfaces. Thanks to Mikeal Rogers for the suggestion, and Ben <afternoon@uk2.net> for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4529 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-17 00:23:09 +00:00
Adrian Holovaty 4a85a75fb0 Fixed #3506 -- Changed newforms BoundField.help_text to an empty string if None. Thanks for the patch, Thomas Steinacher
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4528 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15 22:43:43 +00:00
Adrian Holovaty 1d5e974a4f Fixed #3503 -- Added newforms UKPostcodeField in django.contrib.localflavor.uk. Thanks for the patch, Jonathan Buchanan
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4527 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15 21:26:43 +00:00
Adrian Holovaty c96d155589 Fixed typo in docs/newforms.txt. Thanks, Jeff Hilyard
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4526 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15 20:55:37 +00:00
Adrian Holovaty 1ce1442d95 Implented newforms USStateField in django.contrib.localflavor.usa. Refs #2455
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4525 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15 06:18:27 +00:00
Adrian Holovaty 27b28616b4 Created django.contrib.localflavor, for country- and culture-specific functionality. Moved django/newforms/extras/usa.py into there
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4524 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15 05:53:44 +00:00
Adrian Holovaty b93614ada6 Fixed #3409 -- Added render_value argument to newforms PasswordInput. Thanks for the patch, scott@staplefish.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4523 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15 05:05:43 +00:00
Adrian Holovaty a13a47e447 Fixed #3314 -- Fixed a bug in newforms smart_unicode. Thanks for the patch, nesh
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4522 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15 04:13:02 +00:00
Adrian Holovaty 6245816dd9 Fixed #3456 -- Made it easier/more intuitive to render newforms help_text in templates
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4521 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15 04:03:47 +00:00
Adrian Holovaty 41078ce146 Added empty space in newforms BaseForm.__init__() to visually group a lengthy comment with the code that it's commenting
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4520 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15 03:46:43 +00:00
Adrian Holovaty 2ec2bf6989 Fixed #1466 -- Added newforms USZipCodeField
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4519 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15 03:37:25 +00:00
Malcolm Tredinnick 174cef7361 Fixed #3494 -- Small correct to djangojs.po for German (de) translation. Thanks
jonasvp@gmx.de.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4518 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15 00:21:32 +00:00
Malcolm Tredinnick c53f01a57c Fixed #3451 -- Small fix to Finnish translation. Thanks jtorma.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4517 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15 00:19:44 +00:00
Malcolm Tredinnick 460f500004 Fixed #3429 -- Updated German (de) translation. Thanks djunky.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4516 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15 00:17:59 +00:00
Malcolm Tredinnick 8642d2cbab Fixed #3375 -- Updated Swedish (sv) translations. Thanks mikko@sorl.net.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4515 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15 00:15:13 +00:00
Malcolm Tredinnick ebf6193029 Updated .mo files. Accidently committed incorrect version in [4513].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4514 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15 00:13:46 +00:00
Malcolm Tredinnick 278e224d67 Fixed #3329 -- Added Catalan (ca) translation. Thanks Marc Fargas.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4513 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15 00:07:07 +00:00
Malcolm Tredinnick 132510be5e Fixed #3123 -- Updated Dutch (nl) translation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4512 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15 00:00:09 +00:00
Malcolm Tredinnick 1026e6b672 Added name of Latvian translator. Refs #3058.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-14 23:57:36 +00:00
Malcolm Tredinnick 4717291d0d Fixed #3093 -- Added Macedonian translation from Georgi Stanojevski
<glisha@gmail.com>.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4510 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-14 23:56:29 +00:00
Malcolm Tredinnick d9953d6095 Fixed #3058 -- Added partial Latvia translation from viestards.lists@gmail.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4509 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-14 23:50:26 +00:00
Adrian Holovaty 6ab41bef13 Made a small improvement to the first overview paragraph in docs/newforms.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4508 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-14 23:49:58 +00:00
Adrian Holovaty 26058b98a6 Fixed ReST error in docs/testing.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4507 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-14 23:45:45 +00:00
Adrian Holovaty 0518205308 Implemented subclassing Forms in newforms
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4506 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-14 23:44:46 +00:00
Adrian Holovaty 4c4209b144 Changed __year lookup to use a BETWEEN SQL statement instead of comparing the result of EXTRACT(year). This should be more efficient.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4505 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-14 06:32:32 +00:00
Adrian Holovaty 9efa60dafb Fixed #3489 -- Changed newforms to use copy.copy() in constructing self.fields, so changes to self.fields in a given form instance do not affect other instances
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4504 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-13 18:04:47 +00:00
Adrian Holovaty c61d7e195f Renamed date_to_format function in docs/templates_python.txt example so as to make it not sound like a conversion function. Thanks, linoj
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4502 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-13 15:44:04 +00:00
Malcolm Tredinnick 7ac5a6e27d Mild formatting fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4501 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-13 06:29:35 +00:00
Malcolm Tredinnick ff46f0fbcf Fixed #3394 -- Made min_num_in_admin be respected on new object creation. Patch
from torne-django@wolfpuppy.org.uk.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4500 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-13 06:27:28 +00:00
Adrian Holovaty 5bed563edf Cleaned up docs/templates.txt 'url' tag documentation from [4494]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4499 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-13 06:13:06 +00:00
Malcolm Tredinnick f41e2b7837 Updated [4497] to use something closer to the English language in the comment.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4498 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-13 06:07:55 +00:00
Malcolm Tredinnick ba9649f966 Fixed #3377 -- Fixed subtle infinite recursion bug in LazyDate objects. Thanks
to brut.alll@gmail.com.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4497 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-13 06:06:09 +00:00
Malcolm Tredinnick a4ddecd15c Fixed #3155 -- Allow an integer to be passed to the urlencode filter. Patch
based on one from SmileyChris.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4496 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-13 05:50:55 +00:00
Malcolm Tredinnick ffa0d27462 Fixed #3005 -- Applied trivial docs patch for "oldforms" use of do_html2python.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4495 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-13 05:02:47 +00:00