#NEWLINE# def filter( self , * args , **kwargs ) : #NEWLINE# #INDENT# if ( 'content_object' in kwargs ) : #NEWLINE# #INDENT# content_object = kwargs . pop ( 'content_object' ) #NEWLINE# content_type = ContentType . objects . get_for_model ( content_object ) #NEWLINE# kwargs . update ( { #NEWLINE# #INDENT# 'content_type' : content_type , #NEWLINE# 'object_id' : content_object . pk , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return super ( VoteManger , self ) . filter ( * content_type , ** kwargs )