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

        This function returns True if the uploaded file is pdf and it contains text 2019-03-21
        :return: boolean True if the uploaded file is pdf and it contains text
        
This function returns True if the uploaded file is pdf and it contains text 2019-03-21
This function returns True if the uploaded file is pdf and it contains text 2019 - 03 - 21
def has_pdf_text(self):
        self.is_saved()  
        if self.is_pdf and not self.ocred:
            return True
        return False
def has_pdf_text ( self ) : self . is_saved ( ) if self . is_pdf and not self . ocred : return True return False
This function returns True if the uploaded file is pdf and it contains text 2019-03-21
This function returns True if the uploaded file is pdf and it contains text 2019 - 03 - 21
"""
        This function returns True if the uploaded file is pdf and it contains text 2019-03-21
        :return: boolean True if the uploaded file is pdf and it contains text
        """ # checking that instance of OCRedFile is saved, raise DoesNotSaved exception otherwise
boolean True if the uploaded file is pdf and it contains text
boolean True if the uploaded file is pdf and it contains text
self