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
1 changed files with 2 additions and 1 deletions

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: