<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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)