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'