mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-04-22 07:44:46 +00:00
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:
parent
7d6c3f70d5
commit
53a44ef2c0
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue