2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 12:05:53 +00:00

PEP fixes

This commit is contained in:
Oliver
2022-01-10 09:02:11 +11:00
parent 2370e41961
commit 13d8bf437a
2 changed files with 6 additions and 6 deletions

View File

@ -1067,10 +1067,10 @@ def after_save_build(sender, instance: Build, created: bool, **kwargs):
# Run checks on required parts
InvenTree.tasks.offload_task('build.tasks.check_build_stock', instance)
trigger_event(
'build.created',
build_id=instance.pk,
)
trigger_event('build.created', build_id=instance.pk)
else:
trigger_event('build.saved', build_id=instance.pk)
class BuildOrderAttachment(InvenTreeAttachment):