code: def get_viewable_members(self, user=None):
          
          members = []
          for member in self.members.all():
              show = False
              if member.can_view_eighth:
                  show = member.can_view_eighth
  
              if not show and user and user.is_eighth_admin:
                  show = True
              if not show and user and user.is_teacher:
                  show = True
              if not show and member == user:
                  show = True
  
              if show:
                  members.append(member)
  
          return sorted(members, key=lambda u: (u.last_name, u.first_name))
docs: Get the list of members that you have permissions to view.
  
          Returns: List of members