commit | 50eaf48383030a1512dff06c68d1f8ba620a2cb9 | [log] [tgz] |
---|---|---|
author | Sapan Bhatia <sapan@opennetworking.org> | Tue Aug 01 08:35:23 2017 -0400 |
committer | Sapan Bhatia <sapan@opennetworking.org> | Tue Aug 01 08:35:23 2017 -0400 |
tree | 907aad04756d604f66827ce89db50da70f88c483 | |
parent | 19fec9b679937c0c03129e0dc9d07cc46262ecb8 [diff] |
CORD-1626: Add support for OneToOne relations Change-Id: I29b72318d8922317b180f2662858548c8f083c35
diff --git a/xos/genx/tool/lib.py b/xos/genx/tool/lib.py index 2230d5c..7a400bf 100644 --- a/xos/genx/tool/lib.py +++ b/xos/genx/tool/lib.py
@@ -65,6 +65,8 @@ def xproto_django_link_type(f): if (f['link_type']=='manytoone'): return 'ForeignKey' + elif (f['link_type']=='onetoone'): + return 'OneToOneField' elif (f['link_type']=='manytomany'): if (f['dst_port']): return 'ManyToManyField'