mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-04 09:25:21 +00:00
Changed query param from '1' to 'True'
This commit is contained in:
1 parent
a5e3af97ed
commit
7e78f0aa67
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user