Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

queryset django

def get_object(self, id):
    try:
        return UniversityDetails.objects.get(email__exact=email)
    except UniversityDetails.DoesNotExist:
        return False
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #queryset #django
ADD COMMENT
Topic
Name
7+8 =