#NEWLINE# def shares_for_instance( self , instance , user ) : #NEWLINE# #INDENT# content_type = ContentType . objects . get_for_model ( instance ) #NEWLINE# shares = self . filter ( user = user , object_id = instance . id , content_type = content_type , completed_at__isnull = False , removed_at__isnull = True ) #NEWLINE# return shares