document_page_history don't have _sql attribute

This commit is contained in:
Loïc Faure-Lacroix 2015-03-11 10:56:06 +03:00
parent 048caadd1a
commit a6c01b53fe

View File

@ -183,6 +183,9 @@ class document_page_history(models.Model):
def __getattr__(self, attr): def __getattr__(self, attr):
"""Return a dummy callabale""" """Return a dummy callabale"""
if attr in ['_sql']:
raise AttributeError
_logger.warning( _logger.warning(
"Trying to access attribute %s on document_page_history", "Trying to access attribute %s on document_page_history",
attr attr