django_ocr_server/models.py
def is_pdf(self):
        """
        This function returns True if the uploaded file is pdf 2019-03-21
        :return: boolean True if the uploaded file is pdf
        """
        self.is_saved()  # checking that instance of OCRedFile is saved, raise DoesNotSaved exception otherwise
        if 'pdf' in self.file_type:
            return True
        return False

        This function returns True if the uploaded file is pdf 2019-03-21
        :return: boolean True if the uploaded file is pdf
        
This function returns True if the uploaded file is pdf 2019-03-21
This function returns True if the uploaded file is pdf 2019 - 03 - 21
def is_pdf(self):
        self.is_saved()  
        if 'pdf' in self.file_type:
            return True
        return False
def is_pdf ( self ) : self . is_saved ( ) if 'pdf' in self . file_type : return True return False
This function returns True if the uploaded file is pdf 2019-03-21
This function returns True if the uploaded file is pdf 2019 - 03 - 21
"""
        This function returns True if the uploaded file is pdf 2019-03-21
        :return: boolean True if the uploaded file is pdf
        """ # checking that instance of OCRedFile is saved, raise DoesNotSaved exception otherwise
boolean True if the uploaded file is pdf
boolean True if the uploaded file is pdf
self