diff --git a/django/contrib/localflavor/de/forms.py b/django/contrib/localflavor/de/forms.py index c82d2d5b8d..8e140c125f 100644 --- a/django/contrib/localflavor/de/forms.py +++ b/django/contrib/localflavor/de/forms.py @@ -12,9 +12,9 @@ id_re = re.compile(r"^(?P\d{10})(?P\w{1,3})[-\ ]?(?P>> from django.contrib.localflavor.fr.forms import FRDepartmentSelect >>> w = FRDepartmentSelect() @@ -686,11 +686,11 @@ u'' >>> f.clean('') u'' -# FIMunicipalitySelect ############################################################### +# FIMunicipalitySelect ############################################################### -A Select widget that uses a list of Finnish municipalities as its choices. ->>> from django.contrib.localflavor.fi.forms import FIMunicipalitySelect ->>> w = FIMunicipalitySelect() +A Select widget that uses a list of Finnish municipalities as its choices. +>>> from django.contrib.localflavor.fi.forms import FIMunicipalitySelect +>>> w = FIMunicipalitySelect() >>> unicode(w.render('municipalities', 'turku')) u'' @@ -881,5 +881,5 @@ u'9786324830D-6104243-0910271-2' >>> f.clean('0434657485D-6407276-0508137-9') Traceback (most recent call last): ... -ValidationError: [u'Enter a valid German identity card number in XXXXXXXXXXX-XXXXXXX-XXXXXXX-X format'] +ValidationError: [u'Enter a valid German identity card number in XXXXXXXXXXX-XXXXXXX-XXXXXXX-X format.'] """