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:
|
||||
context = {}
|
||||
|
||||
# If no 'form' argument is supplied, look at the underlying class
|
||||
if form is None:
|
||||
form = self.get_form()
|
||||
try:
|
||||
form = self.get_form()
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
if form:
|
||||
context['form'] = form
|
||||
|
@ -151,7 +151,6 @@ class TestReportFormatForm(HelperForm):
|
||||
'template',
|
||||
]
|
||||
|
||||
|
||||
def __init__(self, stock_item, *args, **kwargs):
|
||||
self.stock_item = stock_item
|
||||
|
||||
|
@ -941,7 +941,7 @@ class StockItemSerialize(AjaxUpdateView):
|
||||
# Pass the StockItem object through to the form
|
||||
context['item'] = self.get_object()
|
||||
|
||||
form = SerializeStockForm(**context)
|
||||
form = StockForms.SerializeStockForm(**context)
|
||||
|
||||
return form
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user