#NEWLINE# def extra_filters( self , pieces , pos , negate ) : #NEWLINE# #INDENT# if ( negate or ( not self . use_gfk ) ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# prefix = '__' . join ( ( [ 'tagged_items' ] + pieces [ : ( pos - 2 ) ] ) ) #NEWLINE# get = ContentType . objects . get_for_model #NEWLINE# cts = [ get ( obj ) for obj in _get_subclasses ( self . model ) ] #NEWLINE# if ( len ( cts ) == 1 ) : #NEWLINE# #INDENT# return [ ( ( '%s__content_type' % prefix ) , cts [ 0 ] ) ] #NEWLINE# #UNINDENT# return [ ( ( '%s__content_type__in' % prefix ) , cts ) ]