diff --git a/document_page/document_page.py b/document_page/document_page.py index 752628c3..75cc3abe 100644 --- a/document_page/document_page.py +++ b/document_page/document_page.py @@ -183,6 +183,9 @@ class document_page_history(models.Model): def __getattr__(self, attr): """Return a dummy callabale""" + if attr in ['_sql']: + raise AttributeError + _logger.warning( "Trying to access attribute %s on document_page_history", attr