From 4239c0bde85c547193e784167e648bd72f655fef Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Wed, 30 Dec 2015 13:37:51 -0500 Subject: [PATCH] [FIX] TypeError: at 0x7fb228106b18> is not JSON serializable --- document_page/document_page.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/document_page/document_page.py b/document_page/document_page.py index 21da2770..b4205e37 100644 --- a/document_page/document_page.py +++ b/document_page/document_page.py @@ -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)