@task
def set_modified_on_object(obj, **kw):
 try:
  log.info(('Setting modified on object: %s, %s' % (obj.__class__.__name__, obj.pk)))
  obj.update(modified=datetime.datetime.now())
 except Exception as e:
  log.error(('Failed to set modified on: %s, %s - %s' % (obj.__class__.__name__, obj.pk, e)))

@ task def set_modified_on_object ( obj , ** kw ) : try : log . info ( ( 'Setting modified on object: %s, %s' % ( obj . __class__ . __name__ , obj . pk ) ) ) obj . update ( modified = datetime . datetime . now ( ) ) except Exception as e : log . error ( ( 'Failed to set modified on: %s, %s - %s' % ( obj . __class__ . __name__ , obj . pk , e ) ) )
sets modified on one object at a time .