Bugfix: Added related objects to set of model fields
diff --git a/planetstack/apigen/api.template.py b/planetstack/apigen/api.template.py
index 69e0410..5c5c914 100644
--- a/planetstack/apigen/api.template.py
+++ b/planetstack/apigen/api.template.py
@@ -44,7 +44,7 @@
{% endfor %}
class Meta:
model = {{ object.camel }}
- fields = ({% for prop in object.props %}'{{ prop }}',{% endfor %})
+ fields = ({% for prop in object.props %}'{{ prop }}',{% endfor %}{% for ref in object.refs %}'{{ ref }}',{% endfor %})
{% endfor %}
serializerLookUp = {