#NEWLINE# def build_filters( self , filters = None ) : #NEWLINE# #INDENT# filters = super ( TagResource , self ) . build_filters ( filters ) #NEWLINE# all_tags = list ( set ( ) . union ( * [ Tag . objects . usage_for_model ( model ) for model in self . TAGGED_MODELS ] ) ) #NEWLINE# filters [ 'id__in' ] = ( [ tag . id for tag in all_tags ] + [ o [ 'tag_id' ] for o in TagSynonym . objects . all ( ) . values ( 'tag_id' ) ] ) #NEWLINE# return filters