def get_object(self, id): try: return UniversityDetails.objects.get(email__exact=email) except UniversityDetails.DoesNotExist: return False