def filter_objects(self, objects, perm=None):
        """ Return only objects with specified permission in objects list. If perm not specified, 'view' perm will be used. """
        if perm is None:
            perm = build_permission_name(self.model_class, 'view')
        return filter(lambda o: self.user.has_perm(perm, obj=o), objects)
def filter_objects ( self , objects , perm = None ) : if perm is None : perm = build_permission_name ( self . model_class , 'view' ) return filter ( lambda o : self . user . has_perm ( perm , obj = o ) , objects )
Return only objects with specified permission in objects list. If perm not specified, 'view' perm will be used.