mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
style improvments
This commit is contained in:
parent
ae01503a9e
commit
9e59d41f12
@ -1633,7 +1633,6 @@ class LineItemPricing(PartPricing):
|
||||
return initials
|
||||
|
||||
def post(self, request, *args, **kwargs):
|
||||
response = None
|
||||
# parse extra actions
|
||||
REF = 'act-btn_'
|
||||
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
|
||||
return super().post(request, *args, **kwargs)
|
||||
|
||||
|
@ -2070,7 +2070,7 @@ class PartPricing(AjaxView):
|
||||
# check if data is set
|
||||
try:
|
||||
data = self.data
|
||||
except Exception as _e:
|
||||
except AttributeError:
|
||||
data = {}
|
||||
|
||||
# Always mark the form as 'invalid' (the user may wish to keep getting pricing data)
|
||||
|
Loading…
Reference in New Issue
Block a user