Skip to content

Commit

Permalink
increase image column max_length to 255, up from 100
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Proto committed Jan 12, 2012
1 parent 8a49e45 commit e8e39e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion satchless/image/models.py
Expand Up @@ -32,7 +32,8 @@ def image_upload_to(instance, filename, **kwargs):

class Image(models.Model):
image = models.ImageField(upload_to=image_upload_to,
height_field='height', width_field='width')
height_field='height', width_field='width',
max_length=255)
height = models.PositiveIntegerField(default=0, editable=False)
width = models.PositiveIntegerField(default=0, editable=False)

Expand Down

0 comments on commit e8e39e4

Please sign in to comment.