def remove_like(obj, user):
 obj_type = apps.get_model('contenttypes', 'ContentType').objects.get_for_model(obj)
 with atomic():
  qs = Like.objects.filter(content_type=obj_type, object_id=obj.id, user=user)
  if (not qs.exists()):
   return
  like = qs.first()
  project = like.project
  qs.delete()
  if (project is not None):
   project.refresh_totals()

def remove_like ( obj , user ) : obj_type = apps . get_model ( 'contenttypes' , 'ContentType' ) . objects . get_for_model ( obj ) with atomic ( ) : qs = Like . objects . filter ( content_type = obj_type , object_id = obj . id , user = user ) if ( not qs . exists ( ) ) : return like = qs . first ( ) project = like . project qs . delete ( ) if ( project is not None ) : project . refresh_totals ( )
remove an user like from an object .