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:
@ -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 """
|
||||
|
Reference in New Issue
Block a user