[FIX] TypeError: <function <lambda> at 0x7fb228106b18> is not JSON serializable

This commit is contained in:
Maxime Chambreuil 2015-12-30 13:37:51 -05:00
parent 300386e1dc
commit 4239c0bde8

View File

@ -181,14 +181,3 @@ class document_page_history(models.Model):
"Revision-{}".format(v2),
context=True
)
def __getattr__(self, attr):
"""Return a dummy callabale"""
if attr in ['_sql', 'init', '_ids']:
raise AttributeError
_logger.warning(
"Trying to access attribute %s on document_page_history",
attr
)
return (lambda *a, **b: None)