commit | 523854baf94202e8aa6fa54933a1ae05f54bca62 | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <matteo.scandolo@gmail.com> | Wed Jun 21 15:32:07 2017 -0700 |
committer | Matteo Scandolo <teo@onlab.us> | Thu Jun 22 16:39:35 2017 -0700 |
tree | 0b67eb1746bce0cec6f420ef52f545a676cab916 | |
parent | 07ed84dac0aebaed9293ef55504f842a6b9060d8 [diff] |
Filtering out decl models from modeldefs Change-Id: I5843e9e765d5ff53378f68c533d24e3ad1e008ce
diff --git a/xos/coreapi/xos_modeldefs_api.py b/xos/coreapi/xos_modeldefs_api.py index 63a7a23..621d7af 100644 --- a/xos/coreapi/xos_modeldefs_api.py +++ b/xos/coreapi/xos_modeldefs_api.py
@@ -87,6 +87,10 @@ if 'core.models.project' in model.__module__: continue + # NOTE Filtering out wrapper models + if str(model.__module__).endswith('decl'): + continue + modeldef = modeldefs.items.add() modeldef.name = model.__name__