mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
style improvments
This commit is contained in:
parent
ae01503a9e
commit
9e59d41f12
@ -1633,7 +1633,6 @@ class LineItemPricing(PartPricing):
|
|||||||
return initials
|
return initials
|
||||||
|
|
||||||
def post(self, request, *args, **kwargs):
|
def post(self, request, *args, **kwargs):
|
||||||
response = None
|
|
||||||
# parse extra actions
|
# parse extra actions
|
||||||
REF = 'act-btn_'
|
REF = 'act-btn_'
|
||||||
act_btn = [a.replace(REF, '') for a in self.request.POST if REF in a]
|
act_btn = [a.replace(REF, '') for a in self.request.POST if REF in a]
|
||||||
@ -1672,4 +1671,3 @@ class LineItemPricing(PartPricing):
|
|||||||
|
|
||||||
# let the normal pricing view run
|
# let the normal pricing view run
|
||||||
return super().post(request, *args, **kwargs)
|
return super().post(request, *args, **kwargs)
|
||||||
|
|
||||||
|
@ -2070,7 +2070,7 @@ class PartPricing(AjaxView):
|
|||||||
# check if data is set
|
# check if data is set
|
||||||
try:
|
try:
|
||||||
data = self.data
|
data = self.data
|
||||||
except Exception as _e:
|
except AttributeError:
|
||||||
data = {}
|
data = {}
|
||||||
|
|
||||||
# Always mark the form as 'invalid' (the user may wish to keep getting pricing data)
|
# Always mark the form as 'invalid' (the user may wish to keep getting pricing data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user