Ignore Fields that starts with "_"
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
* Ignore Fields that starts with "_"
|
||||
* Add comment on table and field for postgresql backend
|
||||
* Remove egenix-mx-base and replace it by python-dateutil
|
||||
* Add cache to safe_eval
|
||||
|
||||
@@ -37,7 +37,7 @@ class Model(object):
|
||||
return self.__columns
|
||||
res = {}
|
||||
for attr in dir(self):
|
||||
if attr in ('_columns', '_defaults', '_xxx2many_targets'):
|
||||
if attr.startswith('_'):
|
||||
continue
|
||||
if isinstance(getattr(self, attr), fields.Field):
|
||||
res[attr] = getattr(self, attr)
|
||||
|
||||
Reference in New Issue
Block a user