diff gpp/bio/forms.py @ 338:e28aee19f7c9

Fix typo that referred to non-existant setting MAX_AVATAR_SIZE.
author Brian Neal <bgneal@gmail.com>
date Sat, 26 Feb 2011 18:50:59 +0000
parents 88b2b9cb8c1f
children e0523e17ea43
line wrap: on
line diff
--- a/gpp/bio/forms.py	Sat Feb 26 06:46:28 2011 +0000
+++ b/gpp/bio/forms.py	Sat Feb 26 18:50:59 2011 +0000
@@ -62,7 +62,7 @@
         if f is not None:
             if f.size > settings.MAX_AVATAR_SIZE_BYTES:
                 raise forms.ValidationError("Please upload a file smaller than "
-                    "%s bytes." % settings.MAX_AVATAR_SIZE)
+                    "%s bytes." % settings.MAX_AVATAR_SIZE_BYTES)
             try:
                 self.image = parse_image(f)
             except IOError: