Permalink
Browse files

Merge pull request #2 from jespino/master

The length of the image field of thumbnail not match with the image field of Image model
  • Loading branch information...
patrys committed Sep 17, 2012
2 parents 81330ee + df5f842 commit 3f0ad1ca8f5a1a30c10ba5e0aa2cc8d87f6f4481
Showing with 2 additions and 1 deletion.
  1. +2 −1 django_images/models.py
View
@@ -74,7 +74,8 @@ def get_or_create_at_size(self, image_id, size):
class Thumbnail(models.Model):
original = models.ForeignKey(Image)
image = models.ImageField(upload_to=thumbnail_upload_to,
- height_field='height', width_field='width')
+ height_field='height', width_field='width',
+ max_length=255)
size = models.CharField(max_length=100)
height = models.PositiveIntegerField(default=0, editable=False)
width = models.PositiveIntegerField(default=0, editable=False)

0 comments on commit 3f0ad1c

Please sign in to comment.