summaryrefslogtreecommitdiff
path: root/django/newforms/fields.py
diff options
context:
space:
mode:
authorGary Wilson Jr <gary.wilson@gmail.com>2007-09-08 19:26:15 +0000
committerGary Wilson Jr <gary.wilson@gmail.com>2007-09-08 19:26:15 +0000
commitb0e173ae3ff466f980846691a4be9f7c55a7405b (patch)
tree582d359fe7de21d956471979af4ddbe61e6d06b0 /django/newforms/fields.py
parent7e57576ff7fcad814c7a86de12d933a219106f8f (diff)
Fixed imports to adhere to PEP 8 and stripped trailing whitespace.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6068 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/newforms/fields.py')
-rw-r--r--django/newforms/fields.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/newforms/fields.py b/django/newforms/fields.py
index cce07fa8bb..658eea6fba 100644
--- a/django/newforms/fields.py
+++ b/django/newforms/fields.py
@@ -353,7 +353,7 @@ class UploadedFile(StrAndUnicode):
def __init__(self, filename, content):
self.filename = filename
self.content = content
-
+
def __unicode__(self):
"""
The unicode representation is the filename, so that the pre-database-insertion
@@ -396,7 +396,7 @@ class ImageField(FileField):
except IOError: # Python Imaging Library doesn't recognize it as an image
raise ValidationError(ugettext(u"Upload a valid image. The file you uploaded was either not an image or a corrupted image."))
return f
-
+
class URLField(RegexField):
def __init__(self, max_length=None, min_length=None, verify_exists=False,
validator_user_agent=URL_VALIDATOR_USER_AGENT, *args, **kwargs):
@@ -526,7 +526,7 @@ class ComboField(Field):
class MultiValueField(Field):
"""
A Field that aggregates the logic of multiple Fields.
-
+
Its clean() method takes a "decompressed" list of values, which are then
cleaned into a single value according to self.fields. Each value in
this list is cleaned by the corresponding field -- the first value is