#NEWLINE# def _count_model( self , model ) : #NEWLINE# #INDENT# qs = model . objects . filter ( project = self . project ) . only ( 'pk' ) #NEWLINE# qs = filter_queryset_for_user ( qs , self . request . user ) #NEWLINE# return qs . count ( )