'Return True if this user is in this group with status MEMBER.'

def has_member(self, userprofile):

    return self.groupmembership_set.filter(userprofile=userprofile, status=GroupMembership.MEMBER).exists()
