django_ocr_server/models.py
def delete(self, *args, **kwargs):
        """
        This function deletes the instance of the model
        :param args:
        :param kwargs:
        :return: None
        """
        self.is_saved()  # checking that instance of OCRedFile is saved, raise DoesNotSaved exception otherwise
        self.remove_file()
        self.remove_pdf()
        OCRedFile.Counters.num_removed_instances += 1
        super(OCRedFile, self).delete(*args, **kwargs)

        This function deletes the instance of the model
        :param args:
        :param kwargs:
        :return: None
        
This function deletes the instance of the model
This function deletes the instance of the model
def delete(self, *args, **kwargs):
        self.is_saved()  
        self.remove_file()
        self.remove_pdf()
        OCRedFile.Counters.num_removed_instances += 1
        super(OCRedFile, self).delete(*args, **kwargs)
def delete ( self , * args , ** kwargs ) : self . is_saved ( ) self . remove_file ( ) self . remove_pdf ( ) OCRedFile . Counters . num_removed_instances += 1 super ( OCRedFile , self ) . delete ( * args , ** kwargs )
This function deletes the instance of the model
This function deletes the instance of the model
"""
        This function deletes the instance of the model
        :param args:
        :param kwargs:
        :return: None
        """ # checking that instance of OCRedFile is saved, raise DoesNotSaved exception otherwise
None
self
args
None
kwargs
None