add docstrings

This commit is contained in:
Oliver Walters 2019-05-04 11:28:23 +10:00
parent 28600ebc79
commit 4fe3b9d779

View File

@ -10,19 +10,23 @@ register = template.Library()
@register.simple_tag()
def multiply(x, y, *args, **kwargs):
""" Multiply two numbers together """
return x * y
@register.simple_tag()
def inventree_version(*args, **kwargs):
""" Return InvenTree version string """
return version.inventreeVersion()
@register.simple_tag()
def inventree_commit(*args, **kwargs):
""" Return InvenTree git commit hash string """
return version.inventreeCommitHash()
@register.simple_tag()
def inventree_github(*args, **kwargs):
""" Return URL for InvenTree github site """
return "https://github.com/InvenTree"