2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-22 04:36:30 +00:00

Don't render editable items when ont in editing mode

This commit is contained in:
Oliver Walters
2019-04-15 18:41:48 +10:00
parent ec98f7829e
commit b522ca5b29
3 changed files with 12 additions and 28 deletions
InvenTree
part
templates
views.py
static
script

@@ -95,9 +95,9 @@ class PartDetail(DetailView):
context = super(PartDetail, self).get_context_data(**kwargs)
if str(self.request.GET.get('edit', None)) == '1':
context['editing_enabled'] = True
context['editing_enabled'] = 1
else:
context['editing_enabled'] = False
context['editing_enabled'] = 0
return context