Changed the max_length of the avatar ImageField, as we were seeing some errors about the path being too short.

git-svn-id: http://django-avatar.googlecode.com/svn/trunk@26 c76b2324-5f53-0410-85ac-b1078a54aeeb
This commit is contained in:
Eric Florenzano 2008-08-16 06:07:06 +00:00
parent 7d6c3f70d5
commit 53a44ef2c0

View file

@ -31,7 +31,7 @@ class Avatar(models.Model):
email_hash = models.CharField(max_length=128, blank=True)
user = models.ForeignKey(User)
primary = models.BooleanField(default=False)
avatar = models.ImageField(upload_to=avatar_file_path, blank=True)
avatar = models.ImageField(max_length=1024, upload_to=avatar_file_path, blank=True)
date_uploaded = models.DateTimeField(default=datetime.datetime.now)
def __unicode__(self):