summaryrefslogtreecommitdiff
path: root/tests/regressiontests
AgeCommit message (Collapse)Author
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-07Fixed #2800: the ifchanged tag now can optionally take paramaters to be ↵Jacob Kaplan-Moss
checked for changing (instead of always using the content). Thanks, Wolfram Kriesing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4050 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
2006-10-27Fixed #2961 -- Added 'opencomment' and 'closecomment' options to {% ↵Adrian Holovaty
templatetag %} templatetag. Thanks for the patch, Jeong-Min Lee git-svn-id: http://code.djangoproject.com/svn/django/trunk@3938 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-10-24Fixed #648 -- Added comment syntax to template system: {# #}. Thanks for the ↵Adrian Holovaty
patch, mccutchen@gmail.com and Hawkeye git-svn-id: http://code.djangoproject.com/svn/django/trunk@3931 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-10-14Fixes #2737 -- Added code to allow None as a query value for __exact ↵Russell Keith-Magee
queries, raising an error otherwise. __exact=None is interpreted as the SQL 'value = NULL'. This fixes some minor problems with queries on unsaved objects with related object sets, and stops queries with a value of None being outright ignored (even if they reference an unknown attribute). git-svn-id: http://code.djangoproject.com/svn/django/trunk@3902 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-26Fixed #2099 -- Allow timezone tests to be ignored on Windows systems, due toMalcolm Tredinnick
lack of time.tzset(). Patch from SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3862 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-26Fixed #2208 -- Allow empty arguments to be passed to filters. Thanks, mattmcc.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3852 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-25Fixed #2729 -- Handle initial SQL with different line-ending styles (WindowsMalcolm Tredinnick
vs. Unix vs. Mac). Thanks, Simon Greenhill. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3821 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-23Fixed #2454 -- Make "ifchanged" tag work more predictably inside nestedMalcolm Tredinnick
for-loops. Thanks, dummy@habmalnefrage.de. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3800 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-23Fixed #2456 -- Added backslash escaping to addslashes, which is necessary onceMalcolm Tredinnick
you start escaping other things. Thanks, tom@eggdrop.ch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3799 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-21Fixed #2743 -- Made the value of a cycle tag accessible through the context.Malcolm Tredinnick
Patch from Martin Glueck. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3773 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-04Fixes #2637 -- Clarified handling of TEMPLATE_STRING_IF_INVALID, especially ↵Russell Keith-Magee
with regards to filtering of invalid values. Modified unit tests to test both empty and non-empty values for TEMPLATE_STRING_IF_INVALID. Thanks to SmileyChris for identifying and helping to resolve this bug. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3714 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-27Refs #2333 - Modified runtests script to use new testing framework. Migrated ↵Russell Keith-Magee
existing tests to use Django testing framework. All the 'othertests' have been migrated into 'regressiontests', and converted into doctests/unittests, as appropriate. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3661 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-04Fixed #1578 -- fixed a corner-case where we still wanting core=True attributesMalcolm Tredinnick
on a model that was not being edited inline. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3275 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-23Fixed #1661 -- Added logic for string-form model references in the 'to' ↵Russell Keith-Magee
argument of OneToOneFields. Includes regression test. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3197 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-23Fixed #1662 -- Added resolver for string-form model references for models ↵Russell Keith-Magee
that have already been loaded, with tests to validate both forward and backward referenced model names. Light refactoring of model loading to make regression tests behave more like normal model loading. Also clarifies the text of some validation errors. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3195 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20Added semicolon test to regressiontests/initial_sql_regress/sql/simple.sqlAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3180 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20Fixed #2119 -- fixed problems with splitting SQL statements into separateMalcolm Tredinnick
statements. Uses a patch from eaw@woudy.org and some contributions from jpellerin@gmail.com. Also fixes #2034 and #1935. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3178 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20Fixed #2161 -- handle trailing newlines in initial SQL data. IncludesMalcolm Tredinnick
regression test. Thanks to russellm. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3177 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20Added regressions tests to ensure that one-to-one and many-to-many fieldsMalcolm Tredinnick
continue to interact properly. Refs #1064. Refs #1506. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3176 bcc190cf-cafb-0310-a4f2-bffc1f526a37