1
0
mirror of https://github.com/django/django.git synced 2025-10-25 06:36:07 +00:00

Fixed #7048 -- Added ClearableFileInput widget to clear file fields. Thanks for report and patch, jarrow and Carl Meyer.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13968 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel
2010-10-01 02:02:58 +00:00
parent a64e96c227
commit 392d992f82
17 changed files with 357 additions and 30 deletions

View File

@@ -57,6 +57,10 @@ class FieldsTests(TestCase):
except error, e:
self.assertEqual(message, str(e))
def test_field_sets_widget_is_required(self):
self.assertEqual(Field(required=True).widget.is_required, True)
self.assertEqual(Field(required=False).widget.is_required, False)
# CharField ###################################################################
def test_charfield_0(self):