

def get_object(self):
    email = self.request.data.get('email')
    obj = get_object_or_404(self.queryset, email=email)
    return obj

dataset/ETHPy150Open ekonstantinidis/django-rest-framework-docs/tests/views.py PasswordResetView.get_object/original