mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fixes
This commit is contained in:
parent
e6f56cb056
commit
5245442b11
@ -166,8 +166,12 @@ class AjaxMixin(object):
|
|||||||
except AttributeError:
|
except AttributeError:
|
||||||
context = {}
|
context = {}
|
||||||
|
|
||||||
|
# If no 'form' argument is supplied, look at the underlying class
|
||||||
if form is None:
|
if form is None:
|
||||||
|
try:
|
||||||
form = self.get_form()
|
form = self.get_form()
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
|
|
||||||
if form:
|
if form:
|
||||||
context['form'] = form
|
context['form'] = form
|
||||||
|
@ -151,7 +151,6 @@ class TestReportFormatForm(HelperForm):
|
|||||||
'template',
|
'template',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
def __init__(self, stock_item, *args, **kwargs):
|
def __init__(self, stock_item, *args, **kwargs):
|
||||||
self.stock_item = stock_item
|
self.stock_item = stock_item
|
||||||
|
|
||||||
|
@ -941,7 +941,7 @@ class StockItemSerialize(AjaxUpdateView):
|
|||||||
# Pass the StockItem object through to the form
|
# Pass the StockItem object through to the form
|
||||||
context['item'] = self.get_object()
|
context['item'] = self.get_object()
|
||||||
|
|
||||||
form = SerializeStockForm(**context)
|
form = StockForms.SerializeStockForm(**context)
|
||||||
|
|
||||||
return form
|
return form
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user