summaryrefslogtreecommitdiff
path: root/tests/regressiontests/forms
AgeCommit message (Collapse)Author
2006-12-17Fixed #3153 -- newforms 'label' argument now can contain wacky characters. ↵Adrian Holovaty
Thanks, dswistowski git-svn-id: http://code.djangoproject.com/svn/django/trunk@4223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-15newforms: Implemented min_value and max_value options for IntegerFieldAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4218 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-15newforms: Fixed unexpected behavior with CharField(required=False, ↵Adrian Holovaty
min_length=X). Thanks for reporting, Benjamin Slavin git-svn-id: http://code.djangoproject.com/svn/django/trunk@4217 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-14Fixed #3143 -- Added TimeField to newforms. Thanks, jkocherhansAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4202 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-13Fixed #3139 -- newforms BoundField no longer returns empty errors when using ↵Adrian Holovaty
a prefix. Thanks, jkocherhans git-svn-id: http://code.djangoproject.com/svn/django/trunk@4199 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-13Fixed #3112 -- Changed newforms Form.as_table() to use <th> instead of <td> ↵Adrian Holovaty
for first column git-svn-id: http://code.djangoproject.com/svn/django/trunk@4197 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-13Fixed #3114 -- newforms MultipleChoiceField now handles MultiValueDicts ↵Adrian Holovaty
properly. Thanks for the patch, Honza Král git-svn-id: http://code.djangoproject.com/svn/django/trunk@4196 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-12Fixed #3132 -- Added prefix support for newforms. Thanks, jkocherhansAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4194 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-11newforms: Changed Form to use auto_id by defaultAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4192 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-08Fixed #3102 -- newforms: Fields can now designate their human-friendly ↵Adrian Holovaty
labels. BoundField.verbose_name is now BoundField.label git-svn-id: http://code.djangoproject.com/svn/django/trunk@4188 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-08newforms: Added Field.widget_attrs() hook, which lets a Field designate HTML ↵Adrian Holovaty
attributes to use in its widget. Implemented CharField.widget_attrs(), which sets the HTML maxlength attribute for <input type='text'> and <input type='password'>. Thanks for the idea, Gary Doades git-svn-id: http://code.djangoproject.com/svn/django/trunk@4187 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-07Fixed #3107 -- newforms: Added Form.as_p()Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4178 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-07newforms: Form.as_ul() no longer puts hidden fields between <li>s. Similar ↵Adrian Holovaty
to [4175], which was the same thing for Form.as_table(). Refs #3101 git-svn-id: http://code.djangoproject.com/svn/django/trunk@4177 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-07Fixed #3101 -- newforms: Form.as_table() no longer puts hidden fields ↵Adrian Holovaty
between <tr>s. Thanks for reporting, Eric git-svn-id: http://code.djangoproject.com/svn/django/trunk@4175 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-07newforms: Changed Table.as_table() and Table.as_ul() to put hidden-form ↵Adrian Holovaty
errors at the top of the output rather than in field order git-svn-id: http://code.djangoproject.com/svn/django/trunk@4173 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-30newforms: Added check_test argument to CheckboxInput and changed its ↵Adrian Holovaty
render() behavior slightly. Also changed CheckboxSelectMultiple to use checkboxes with the same name, rather than checkboxes with separate names git-svn-id: http://code.djangoproject.com/svn/django/trunk@4148 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-30newforms: Added some more documentation to unit testsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4147 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-30Fixed #3082 -- newforms: Changed Form as_table() and as_ul() not to display ↵Adrian Holovaty
verbose names for hidden fields, and to add field-name prefix to error messages to avoid user confusion. Also added unit tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4146 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-30newforms: Added BoundField.as_hidden()Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4145 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-29newforms: Added BoundField.data propertyAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4143 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-29newforms: Added Widget.value_from_datadict hook, which allows a Widget to ↵Adrian Holovaty
define how to convert its post data dictionary to a value. Implemented it for CheckboxSelectMultiple and updated unit tests git-svn-id: http://code.djangoproject.com/svn/django/trunk@4136 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-29newforms: Implemented CheckboxSelectMultipleAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4132 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-29newforms: The <input> tags in a RadioSelect now each have a distinct ID. ↵Adrian Holovaty
Also, this plays nicely with auto_id and <label>s for Form.as_table() and Form.as_ul(). Refs #3064 git-svn-id: http://code.djangoproject.com/svn/django/trunk@4131 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-29Fixed #3064 -- newforms: Added <label> support through ↵Adrian Holovaty
BoundField.label_tag() method. Also added BoundField.verbose_name and added/updated unit tests. Thanks, SmileyChris git-svn-id: http://code.djangoproject.com/svn/django/trunk@4130 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-28newforms: Changed Form unit tests to use f.clean_data rather than f.clean(), ↵Adrian Holovaty
because the latter is a validation hook, not a way to get the clean data git-svn-id: http://code.djangoproject.com/svn/django/trunk@4129 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-27newforms: Normalized all error <ul>s to use class='errorlist'Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4120 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-27newforms: Added Form.non_field_errors() and added more ↵Adrian Holovaty
examples/documentation to the unit tests git-svn-id: http://code.djangoproject.com/svn/django/trunk@4119 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-27Fixed #3026 -- newforms: Form class now suppresses validation and errors if ↵Adrian Holovaty
no data (or None) is passed in. Validation still happens if you pass in an empty dictionary. Also updated unit tests. Thanks, SmileyChris git-svn-id: http://code.djangoproject.com/svn/django/trunk@4117 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-27newforms: Changed Form.errors to be a property rather than a function. Refs ↵Adrian Holovaty
#3026 git-svn-id: http://code.djangoproject.com/svn/django/trunk@4116 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-27newforms: Added a bunch of unit tests and fixed some bugs in the case of ↵Adrian Holovaty
required=False for various Field subclasses git-svn-id: http://code.djangoproject.com/svn/django/trunk@4113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-27Fixed #3038 -- newforms: RegexField no longer validates empty input for ↵Adrian Holovaty
required=False. Thanks for reporting, Thomas Steinacher git-svn-id: http://code.djangoproject.com/svn/django/trunk@4111 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-26Fixed #3065 -- newforms: Fixed rendering problem with RadioSelect as a ↵Adrian Holovaty
member of a Form. Also fixed some Unicode issues and added unit tests. Thanks for reporting, Derek Hoy git-svn-id: http://code.djangoproject.com/svn/django/trunk@4106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-23newforms: Added unit test to test field order. Refs #3054Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4092 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-16newforms: Fixed #3008 -- Widgets now support strings containing utf-8 ↵Adrian Holovaty
characters. Thanks for reporting, Nebojša Đorđević git-svn-id: http://code.djangoproject.com/svn/django/trunk@4076 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-16newforms: Fixed #3027 -- Changed Form as_table(), as_ul(), ↵Adrian Holovaty
as_table_with_errors() and as_ul_with_errors() to exclude <table> and <ul>. Good idea, SmileyChris git-svn-id: http://code.djangoproject.com/svn/django/trunk@4075 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-15newforms: Added unit test showing it's possible to construct the fields in a ↵Adrian Holovaty
Form dynamically git-svn-id: http://code.djangoproject.com/svn/django/trunk@4074 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-15Fixed #3025 -- Added auto_id option to Form.__init__(). Thanks, SmileyChrisAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4073 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-15newforms: Implemented RadioSelect, with unit testsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4072 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-04django.newforms: Implemented hook for validation not tied to a particular ↵Adrian Holovaty
field. Renamed to_python() to clean() -- it's just...cleaner. Added Form.as_table(), Form.as_url(), Form.as_table_with_errors() and Form.as_ul_with_errors(). Added ComboField. Updated all unit tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3978 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-02Added ChoiceField, MultipleChoiceField to django.newformsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3959 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-02Implemented SelectMultiple in django.newforms.widgetsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3958 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-01Updated forms unit tests to reflect new fields and widgets from [3955] and ↵Adrian Holovaty
[3956] git-svn-id: http://code.djangoproject.com/svn/django/trunk@3957 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-10-28Changed forms unit tests to reflect the fact that render() does not use the ↵Adrian Holovaty
to_python() value of data git-svn-id: http://code.djangoproject.com/svn/django/trunk@3946 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-10-28Split django.newforms into forms, fields, widgets, util. Also moved unit ↵Adrian Holovaty
tests from docstrings to a standalone module in tests/regressiontests/forms, to save docstring memory overhead, keep code readable and fit our exisitng convention git-svn-id: http://code.djangoproject.com/svn/django/trunk@3945 bcc190cf-cafb-0310-a4f2-bffc1f526a37