1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #18102 -- Defined min/max_length on French localflavor form fields

Thanks mothsART for the report and the initial patch.
This commit is contained in:
Claude Paroz
2012-06-30 13:18:07 +02:00
parent b9ecbedb31
commit 47da7b7a9a
2 changed files with 9 additions and 5 deletions

View File

@@ -16,7 +16,8 @@ class FRLocalFlavorTests(SimpleTestCase):
}
invalid = {
'2A200': error_format,
'980001': error_format,
'980001': ['Ensure this value has at most 5 characters (it has 6).'
] + error_format,
}
self.assertFieldOutput(FRZipCodeField, valid, invalid)