mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-07 10:51:17 +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:
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 """
|
||||
|
||||
Reference in new issue
Block a user