mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Changed query param from '1' to 'True'
This commit is contained in:
parent
a5e3af97ed
commit
7e78f0aa67
@ -67,7 +67,7 @@
|
||||
|
||||
$("#edit-bom").click(function () {
|
||||
|
||||
location.href = "{% url 'part-bom' part.id %}?edit=1";
|
||||
location.href = "{% url 'part-bom' part.id %}?edit=True";
|
||||
|
||||
});
|
||||
|
||||
|
@ -94,7 +94,7 @@ class PartDetail(DetailView):
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super(PartDetail, self).get_context_data(**kwargs)
|
||||
|
||||
if str(self.request.GET.get('edit', None)) == '1':
|
||||
if str(self.request.GET.get('edit', None)):
|
||||
context['editing_enabled'] = 1
|
||||
else:
|
||||
context['editing_enabled'] = 0
|
||||
|
Loading…
Reference in New Issue
Block a user