CORD-1532: Fix pluralization in the GRPC API
Change-Id: I7c68ec2fae7fde9eb36b9d8d1d5fa918c8757de3
diff --git a/lib/xos-genx/xosgenx/targets/django-split.xtarget b/lib/xos-genx/xosgenx/targets/django-split.xtarget
index 13212ae..8a0082a 100644
--- a/lib/xos-genx/xosgenx/targets/django-split.xtarget
+++ b/lib/xos-genx/xosgenx/targets/django-split.xtarget
@@ -16,6 +16,8 @@
class {{ m.name }}{{ xproto_base_def(m.name, m.bases) }}:
+ plural_name = "{{ xproto_pluralize(m) }}"
+
# Primitive Fields (Not Relations)
{% for f in m.fields %}
{%- if not f.link -%}
@@ -39,4 +41,4 @@
{% if file_exists(xproto_base_name(m.name)|lower+'_bottom.py') -%}{{ include_file(xproto_base_name(m.name)|lower+'_bottom.py') }}{% endif %}
+++ {{m.name|lower}}.py
-{% endif %}{% endfor %}
\ No newline at end of file
+{% endif %}{% endfor %}