Commit 2df5d3bb authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Add name and code to json_unique_fields Vendor and Technology.

parent 42408e2f
......@@ -37,7 +37,8 @@ class Technology(Document):
"collection": "technologies",
"strict": False,
"auto_create_index": False,
"json_collection": "inv.technologies"
"json_collection": "inv.technologies",
"json_unique_fields": ["name"],
}
# Group | Name
......
......@@ -38,7 +38,7 @@ class Vendor(Document):
"strict": False,
"auto_create_index": False,
"json_collection": "inv.vendors",
"json_unique_fields": ["name"]
"json_unique_fields": ["name", "code"]
}
# Short vendor name, included as first part of platform
name = StringField(unique=True)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment