Recalculate all ImageCountField and UserImageCountField fields
        in object ``obj``. 
        
        This should be used if auto-updating of these fields was disabled for
        some reason.
        
        To disable auto-update when saving AttachedImage instance 
        (for example when you need to save a lot of images and want to 
        recalculate denormalised values only after all images are saved) use 
        this pattern::
        
            image = AttachedImage(...)
            image.send_signal = False
            image.save()

def force_recalculate(obj):
    ''' Recalculate all ImageCountField and UserImageCountField fields
        in object ``obj``. 
        
        This should be used if auto-updating of these fields was disabled for
        some reason.
        
        To disable auto-update when saving AttachedImage instance 
        (for example when you need to save a lot of images and want to 
        recalculate denormalised values only after all images are saved) use 
        this pattern::
        
            image = AttachedImage(...)
            image.send_signal = False
            image.save()

    '''        
    class Stub(object):
        content_object = obj    
    img = Stub()
    image_saved.send(sender = obj.__class__, instance = img)