Commits

Mikhail Korobov committed cadacf2

Fix a bug that prevents correct updating of ImageCountField when image is deleted.

  • Participants
  • Parent commits 4f30c34

Comments (0)

Files changed (2)

generic_images/models.py

 
     def delete(self, *args, **kwargs):
         send_signal = getattr(self, 'send_signal', True)
+        super(AbstractAttachedImage, self).delete(*args, **kwargs)
         if send_signal:
             image_deleted.send(sender = self.content_type.model_class(),
                                instance = self)
-        super(AbstractAttachedImage, self).delete(*args, **kwargs)
 
 
     def __unicode__(self):
 
 setup(
       name='django-generic-images',
-      version='0.35.3',
+      version='0.35.4',
       author='Mikhail Korobov',
       author_email='kmike84@gmail.com',
       url='http://bitbucket.org/kmike/django-generic-images/',