Updating error message in xproto
Change-Id: I21ff9746e61f83d83c7cc64c452913d1299b49f9
diff --git a/lib/xos-genx/xosgenx/targets/django-split.xtarget b/lib/xos-genx/xosgenx/targets/django-split.xtarget
index 60cf9de..200a29f 100644
--- a/lib/xos-genx/xosgenx/targets/django-split.xtarget
+++ b/lib/xos-genx/xosgenx/targets/django-split.xtarget
@@ -38,7 +38,7 @@
{%- endfor %}
# Meta
- {%- set uniques = xproto_field_graph_components(m.fields) %}
+ {%- set uniques = xproto_field_graph_components(m.fields, m) %}
{%- if uniques %}
class Meta:
unique_together = {{ xproto_tuplify(uniques) }}
diff --git a/lib/xos-genx/xosgenx/targets/django.xtarget b/lib/xos-genx/xosgenx/targets/django.xtarget
index 13d37f9..631e8cd 100644
--- a/lib/xos-genx/xosgenx/targets/django.xtarget
+++ b/lib/xos-genx/xosgenx/targets/django.xtarget
@@ -76,7 +76,7 @@
# Meta
class Meta:
- {%- set uniques = xproto_field_graph_components(m.fields) %}
+ {%- set uniques = xproto_field_graph_components(m.fields, m) %}
{%- if uniques %}
unique_together = {{ xproto_tuplify(uniques) }}
{%- endif %}
diff --git a/lib/xos-genx/xosgenx/targets/service.xtarget b/lib/xos-genx/xosgenx/targets/service.xtarget
index 7b40110..e5816ab 100644
--- a/lib/xos-genx/xosgenx/targets/service.xtarget
+++ b/lib/xos-genx/xosgenx/targets/service.xtarget
@@ -56,7 +56,7 @@
app_label = {{ xproto_first_non_empty([m.options.app_label, options.app_label, options.name, "Set an app label in your xproto!"]) | lower}}
# name = {{ xproto_first_non_empty([m.options.name, options.name, "Set a name in your xproto!"]) }}
verbose_name = "{{ xproto_unquote(xproto_first_non_empty([m.options.verbose_name, m.name])) }}"
- {%- set uniques = xproto_field_graph_components(m.fields) %}
+ {%- set uniques = xproto_field_graph_components(m.fields, m) %}
{%- if uniques %}
unique_together = {{ xproto_tuplify(uniques) }}
{%- endif %}