fix: fix 'consider-using-f-string' for pylint
This commit is contained in:
parent
efa13362e1
commit
3ba57e3640
2 changed files with 3 additions and 3 deletions
|
@ -9,4 +9,3 @@ disable=fixme,
|
||||||
attribute-defined-outside-init,
|
attribute-defined-outside-init,
|
||||||
broad-exception-caught,
|
broad-exception-caught,
|
||||||
consider-using-dict-comprehension,
|
consider-using-dict-comprehension,
|
||||||
consider-using-f-string,
|
|
||||||
|
|
|
@ -1596,8 +1596,9 @@ class OrderItemView(MasterView):
|
||||||
if item.status_code != new_status_code:
|
if item.status_code != new_status_code:
|
||||||
|
|
||||||
# event: change status
|
# event: change status
|
||||||
note = 'status changed from "{}" to "{}"'.format(
|
note = (
|
||||||
enum.ORDER_ITEM_STATUS[item.status_code], new_status_text
|
f'status changed from "{enum.ORDER_ITEM_STATUS[item.status_code]}" '
|
||||||
|
f'to "{new_status_text}"'
|
||||||
)
|
)
|
||||||
item.add_event(
|
item.add_event(
|
||||||
enum.ORDER_ITEM_EVENT_STATUS_CHANGE, self.request.user, note=note
|
enum.ORDER_ITEM_EVENT_STATUS_CHANGE, self.request.user, note=note
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue