1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Small formatting changes to localflavor/cl/forms.py

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5098 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2007-04-26 14:59:27 +00:00
parent 4bce3c17ec
commit 143270856b

View File

@ -1,6 +1,7 @@
"""
Chile specific form helpers.
"""
from django.newforms import ValidationError
from django.newforms.fields import RegexField, EMPTY_VALUES
from django.utils.translation import gettext
@ -26,7 +27,7 @@ class CLRutField(RegexField):
def clean(self, value):
"""
Check and clean the chilean rut.
Check and clean the Chilean RUT.
"""
super(CLRutField, self).clean(value)
if value in EMPTY_VALUES: