Commits

Bruno Renié committed 43c2bd4

Using base image fields instead of old sorl fields

Comments (0)

Files changed (1)

 from django.core.urlresolvers import reverse
 from django.db import models
 from django.utils.translation import ugettext_lazy as _
-from django.template import mark_safe
+from django.utils.safestring import mark_safe
 
-from sorl.thumbnail.fields import ImageWithThumbnailsField
 import tagging
 from tagging.models import TaggedItem
 
     entry = models.ForeignKey(Entry, verbose_name=_('Entry'),
                               related_name='images')
     slug = models.SlugField(_('Slug'), unique=True, db_index=True)
-    image = ImageWithThumbnailsField(_('Image'), upload_to=_upload_image,
-                                     thumbnail={'size': (600, 600)})
+    image = models.ImageField(_('Image'), upload_to=_upload_image)