2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 05:46:34 +00:00

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
2020-04-06 20:11:36 +10:00
parent 071c317bae
commit 751937e0c2
6 changed files with 37 additions and 12 deletions

View File

@ -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 """