Fix bug in patch issue12678.diff.
This commit is contained in:
parent
e25d4a36f8
commit
f4730c8d5d
|
@ -35,7 +35,7 @@ index d0b426bc4e..e874e24c4c 100644
|
|||
+ @classmethod
|
||||
+ def delete(cls, lines):
|
||||
+ for line in lines:
|
||||
+ if line.statement_state != {'cancelled', 'draft'}:
|
||||
+ if line.statement_state not in {'cancelled', 'draft'}:
|
||||
+ raise AccessError(
|
||||
+ gettext(
|
||||
+ 'account_statement.'
|
||||
|
@ -54,7 +54,7 @@ index d0b426bc4e..e874e24c4c 100644
|
|||
+ @classmethod
|
||||
+ def delete(cls, origins):
|
||||
+ for origin in origins:
|
||||
+ if origin.statement_state != {'cancelled', 'draft'}:
|
||||
+ if origin.statement_state not in {'cancelled', 'draft'}:
|
||||
+ raise AccessError(
|
||||
+ gettext(
|
||||
+ 'account_statement.'
|
||||
|
|
Loading…
Reference in New Issue