Commit Graph

46 Commits

Author SHA1 Message Date
Adrian Holovaty dbebf54d6c Fixed #4648 -- Fixed awkward wording in docs/newforms.txt. Thanks, jim-django@dsdd.org
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5506 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-21 16:05:23 +00:00
Malcolm Tredinnick 88632cd7f9 Fixed #4547 -- Included a fix missed in [5468].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5469 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-15 00:07:03 +00:00
Malcolm Tredinnick 1e57d6ccf0 Fixed #4547 -- Trivial typo fixing time. Thanks, Grant Kelly.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5468 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-13 02:22:26 +00:00
Malcolm Tredinnick 5c346840bb Fixed #4473 -- Added documentation of the three cleaning methods invoked on
form data. Based on a patch from Joe Heck.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5460 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-11 11:49:25 +00:00
Adrian Holovaty 83fe33e277 Made some changes to docs/newforms.txt that I'd had lying around
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5442 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-07 22:28:06 +00:00
Malcolm Tredinnick ee2dfe7e46 Fixed #4395 -- Fixed a couple of typos in the examples.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5358 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-27 04:37:46 +00:00
Malcolm Tredinnick c1efc3cd9f Fixed #4353 -- Fixed a typo in newforms documentation. I can't believe the
documentation editor didn't spot this. Thanks, zendak.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5352 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-26 09:22:55 +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 744d06528e Added small note to docs/newforms.txt 'Complex template output' section
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5299 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-20 20:43:51 +00:00
Adrian Holovaty 1bf43df33d Edited docs/newforms.txt changes from [5294] and [5295]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5298 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-20 20:39:32 +00:00
Russell Keith-Magee d43522b077 Modified the example views in newforms.txt to include a HttpResponseRedirect (as per best practice), and remove a duplicated form instantiation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5295 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-20 02:18:22 +00:00
Malcolm Tredinnick 0f424f5084 Fixed #4232 -- Added example usages to the newforms documentation. Thanks, Joe
Heck.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5294 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-19 19:13:39 +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
Adrian Holovaty 70703a6b71 Fixed #3780 -- Added first stab at 'Built-in Field classes' section to docs/newforms.txt, with help from SmileyChris and Marc Fargas
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5222 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 05:32:35 +00:00
Adrian Holovaty cc1d02a5aa Fixed ReST error in docs/newforms.txt from [5218]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5219 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 03:02:55 +00:00
Adrian Holovaty 2c86d57284 Added unit tests and docs for the newforms case in which the form's data doesn't include a value for a nonrequired field
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5218 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 02:57:42 +00:00
Adrian Holovaty edc014b255 Another word tightening and clarification in docs/newforms.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5217 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 02:21:28 +00:00
Adrian Holovaty 3d86329f82 Clarified migration plan in docs/newforms.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5216 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 02:20:12 +00:00
Adrian Holovaty 1130f5e6b7 Fixed some ReST errors in docs/newforms.txt from [5212]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5213 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 17:11:19 +00:00
Adrian Holovaty 6500f3fefa Edited changes to docs/newforms.txt from [5202]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5212 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 17:02:44 +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
Adrian Holovaty 5d079ee214 Added start of 'Creating custom fields' section to docs/newforms.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4819 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-25 21:06:12 +00:00
James Bennett 1c13d05043 Remove notes about things added/removed in development version, since the development version is about to become 0.96
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4804 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-23 20:45:30 +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 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 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 cf75fcc832 Fixed #3255 -- Added help_text argument to newforms Field class.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4440 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-28 22:10:04 +00:00
Adrian Holovaty 85fe107996 Made tiny grammar change to docs/newforms.txt. Thanks, Rex
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4409 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-24 03:30:32 +00:00
Adrian Holovaty 73d62743e9 newforms: Added unit tests and docs explaining that clean_data will only ever contain fields of the form, even if extra fields are passed in data
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4306 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-11 00:04:27 +00:00
Adrian Holovaty 2e148d7064 newforms: Added 'initial' parameter to Form, which lets initial data be specified dynamically
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-09 04:39:44 +00:00
Adrian Holovaty 6ee9aeb0d6 Added note to docs/newforms.txt that points out ValidationError is a different class than previously
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4292 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-05 22:15:46 +00:00
Adrian Holovaty 9cb85eb370 Fixed #3236 -- Fixed some typos in docs/newforms.txt. Thanks, christoffer.carlborg@gmail.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4291 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-05 20:14:26 +00:00
Adrian Holovaty 9d29892f56 Fixed ReST error in docs/newforms.txt from [4288]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4289 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-05 05:22:36 +00:00
Adrian Holovaty 84b673e9b1 Added a lot more to docs/newforms.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4288 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-05 05:21:39 +00:00
Adrian Holovaty 13184efb0f More additions to docs/newforms.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4287 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-05 00:13:36 +00:00
Adrian Holovaty 61ede43202 Added first part of 'Using forms to validate data' section to docs/newforms.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4285 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-04 06:52:50 +00:00
Adrian Holovaty 08f3969d5e Added a small note about decoupling to docs/newforms.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4262 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-30 00:39:41 +00:00
Adrian Holovaty b9eb649492 Added first bit of 'More granular output' to docs/newforms.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4258 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-29 19:32:28 +00:00
Adrian Holovaty 99723ac65a Negligible change to docs/newforms.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4245 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-27 05:14:34 +00:00
Adrian Holovaty 1147a57d20 Clarified docs/newforms.txt 'Migration plan' section
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4209 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-15 18:07:20 +00:00
Adrian Holovaty 472a0d379e Added 'Notes on field ordering' to docs/newforms.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4200 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-13 23:13:01 +00:00
Adrian Holovaty 10edce12fc Updated docs/newforms.txt to reflect [4197]. Refs #3112
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4198 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-13 06:48:57 +00:00
Adrian Holovaty 5467c34b0b Added more to docs/newforms.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4193 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-11 03:03:54 +00:00
Adrian Holovaty 4e72dc86ff Fixed small Unicode error in newforms. Thanks, Honza Král. Refs #3114
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-08 05:54:14 +00:00
Adrian Holovaty 9a02d668c1 Small tweak to docs/newforms.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4171 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-07 04:59:36 +00:00
Adrian Holovaty 625ae4ef93 Added preliminary stub for docs/newforms.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4168 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-06 17:36:48 +00:00