gallery/models.py
def delete_loc(self):
        '''
        method to delete a category from db
        '''   
        self.delete()

        method to delete a category from db
        
method to delete a category from db
method to delete a category from db
def delete_loc(self):
        self.delete()
def delete_loc ( self ) : self . delete ( )
method to delete a category from db
method to delete a category from db
'''
        method to delete a category from db
        '''
self