2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

Add 'About InvenTree' modal

- Accessible from the top-right dropdown menu
- Add InvenTree/version.py which contains helper functions
This commit is contained in:
Oliver Walters
2019-05-04 11:23:30 +10:00
parent 293b386286
commit b32a9ed597
9 changed files with 108 additions and 23 deletions

View File

@ -1,12 +0,0 @@
""" This module provides template tags for extra functionality
over and above the built-in Django tags.
"""
from django import template
register = template.Library()
@register.simple_tag()
def multiply(x, y, *args, **kwargs):
return x * y

View File

@ -143,7 +143,6 @@ class BuildComplete(AjaxUpdateView):
location = StockLocation.objects.get(id=loc_id)
valid = True
except StockLocation.DoesNotExist:
print('id:', loc_id)
form.errors['location'] = ['Invalid location selected']
if valid: