From 3df1a2036ece643b4765ff877cb17b8285087c32 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 22 May 2019 15:16:41 +0200 Subject: Document generation: do not filter "_id" fields --- ishtar_common/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index ed0f22121..d8c9be40c 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -121,8 +121,7 @@ class ValueGetter(object): values = {} for field_name in get_all_field_names(self): if not hasattr(self, field_name) or \ - field_name in self.GET_VALUE_EXCLUDE_FIELDS or \ - field_name.endswith('_id'): + field_name in self.GET_VALUE_EXCLUDE_FIELDS: continue value = getattr(self, field_name) if hasattr(value, 'get_values'): -- cgit v1.2.3