Use InstanceName around the place

- Report in /api/ endpoint
- Display in About window
- Include in any generated barcode
This commit is contained in:
Oliver Walters committed 2020-04-06 20:11:36 +10:00
1 parent 071c317bae
commit 751937e0c2
6 files changed
+37 -12

No files matched your search

@@ -43,6 +43,12 @@ def part_allocation_count(build, part, *args, **kwargs):
return decimal2string(build.getAllocatedQuantity(part))
@register.simple_tag()
def inventree_instance_name(*args, **kwargs):
""" Return the InstanceName associated with the current database """
return version.inventreeInstanceName()
@register.simple_tag()
def inventree_version(*args, **kwargs):
""" Return InvenTree version string """