summaryrefslogtreecommitdiff
path: root/tests/regressiontests
AgeCommit message (Collapse)Author
2007-02-10Fixed #2027 -- added truncatewords_html filter that respects HTML tags whilstMalcolm Tredinnick
truncating. Patch from SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4468 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-09Fixed #3449 -- fixed regression test results so that they all pass now. ThanksMalcolm Tredinnick
Brian Harring. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4466 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-28Fixed #3255 -- Added help_text argument to newforms Field class.Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4440 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-27newforms: Added a unit test that tests dynamic field addition with base ↵Adrian Holovaty
fields defined on the class git-svn-id: http://code.djangoproject.com/svn/django/trunk@4438 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-27Fixed #3334 -- Changed newforms Form class construction so that appending to ↵Adrian Holovaty
(or altering) self.fields affects only the instance, not the class. As a consequence, self.fields is created in Form.__init__(). The form metaclass now creates a variable self.base_fields instead of self.fields. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4437 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-27Fixed #3312 -- CheckboxSelectMultiple no longer uses duplicate ID attributes ↵Adrian Holovaty
for each checkbox git-svn-id: http://code.djangoproject.com/svn/django/trunk@4436 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-27Fixed #3300 -- Changed newforms Select widget to collapse 'choices' into a ↵Adrian Holovaty
list if it's an iterable, so the iterable can be iterated over multiple times. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4435 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-24newforms: Implemented NullBooleanField and NullBooleanSelectAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4411 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-23newforms: Added MultiValueField, SplitDateTimeField, MultiWidget, ↵Adrian Holovaty
SplitDateTimeWidget git-svn-id: http://code.djangoproject.com/svn/django/trunk@4403 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-21Fixed #3196 -- Fixed inconsistency in setting choices on ChoiceFields ↵Adrian Holovaty
dynamically git-svn-id: http://code.djangoproject.com/svn/django/trunk@4379 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-21newforms: Fixed confusing behavior when setting choices for ChoiceFields and ↵Adrian Holovaty
their corresponding Widgets. Now, a Widget uses the choices from its ChoiceField regardless of whether the Widget has its own choices. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-20newforms: Added attrs optional argument to BoundForm.label_tag()Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4369 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-13Fixed #3281 -- newforms: URLField now works properly with required=False and ↵Adrian Holovaty
verify_exists=True together. Thanks, zendak git-svn-id: http://code.djangoproject.com/svn/django/trunk@4313 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-13Fixed #3293 -- newforms: Changed IntegerField.clean() to return None if ↵Adrian Holovaty
field is not required and empty. Thanks, Honza Kral git-svn-id: http://code.djangoproject.com/svn/django/trunk@4312 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-13Fixed #3289 -- newforms: Added value_from_datadict method to MultipleHiddenInputAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4311 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-13newforms: Added unit tests for MultipleHiddenInputAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4310 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-11newforms: Added unit tests and docs explaining that clean_data will only ↵Adrian Holovaty
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-10Fixed #3266 -- newforms: Made RadioSelect accept funky characters. Thanks ↵Adrian Holovaty
for reporting, Honza Kral git-svn-id: http://code.djangoproject.com/svn/django/trunk@4304 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-10Fixed #3278 -- newforms: Fixed bug in DeclarativeFieldsMetaclass where it ↵Adrian Holovaty
inadvertently overrode the class' name. Thanks, russblau@imapmail.org git-svn-id: http://code.djangoproject.com/svn/django/trunk@4303 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-09Fixed #3193 -- newforms: Modified as_hidden() to handle MultipleChoiceField ↵Adrian Holovaty
correctly. Thanks for the report, Honza Kral git-svn-id: http://code.djangoproject.com/svn/django/trunk@4298 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-09newforms: Added 'initial' parameter to Form, which lets initial data be ↵Adrian Holovaty
specified dynamically git-svn-id: http://code.djangoproject.com/svn/django/trunk@4297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-05newforms: Changed Form.ignore_errors to Form.is_bound, which is more ↵Adrian Holovaty
descriptive and can be helpful to access at runtime git-svn-id: http://code.djangoproject.com/svn/django/trunk@4286 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-04newforms: Changed Form so that clean_data only exists if a Form is valid. ↵Adrian Holovaty
Thanks for the idea, Honza Kral git-svn-id: http://code.djangoproject.com/svn/django/trunk@4284 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-03Fixes #3176, #3004 -- Added an argument to the floatfilter to allow users to ↵Russell Keith-Magee
specify precision of floats, Thanks, Eric Floehr. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4274 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-03Fixes #3217 -- Added regression tests for options on the Admin metaclass. ↵Russell Keith-Magee
Includes some tests that are commented out, as they are known failures. Thanks, Robert Myers (who has promised to fix the rest of the tests). git-svn-id: http://code.djangoproject.com/svn/django/trunk@4273 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-03Fixed problem with SelectDateWidget test caused by 2006/2007 year rollover. ↵Russell Keith-Magee
Thanks, Robert Myers. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-28newforms: Added 'initial' parameter to Field. This allows you to specify ↵Adrian Holovaty
initial data that will be displayed with the form if no data is given. Also added unit tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4249 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-26newforms: Added max_length and min_length optional arguments to RegexField, ↵Adrian Holovaty
EmailField and URLField. Note that the argument order for those three fields has changed git-svn-id: http://code.djangoproject.com/svn/django/trunk@4241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-26newforms: A label can now be the empty string, in which case a label won't ↵Adrian Holovaty
be displayed git-svn-id: http://code.djangoproject.com/svn/django/trunk@4240 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-26newforms: Changed Form.as_table() to display errors in same <td> as the fieldAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4239 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-26newforms: Implemented RadioFieldRenderer.__getitem__(), which allows for ↵Adrian Holovaty
index lookup on radio fields git-svn-id: http://code.djangoproject.com/svn/django/trunk@4238 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-24newforms: Added django.newforms.extras.widgets, with SelectDateWidget ↵Adrian Holovaty
implementation, plus some unit tests git-svn-id: http://code.djangoproject.com/svn/django/trunk@4236 bcc190cf-cafb-0310-a4f2-bffc1f526a37
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-12-05Template system now supports variables whose str() returns a Unicode object ↵Adrian Holovaty
with non-ascii characters. Thanks, gabor git-svn-id: http://code.djangoproject.com/svn/django/trunk@4161 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