From 9c4a5d10fa7cb8d550e888db9eca351e96921acd Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 3 May 2019 08:04:30 +1000 Subject: [PATCH] PEP fixes --- InvenTree/build/models.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/InvenTree/build/models.py b/InvenTree/build/models.py index 164e5b1aee..a25c99f37d 100644 --- a/InvenTree/build/models.py +++ b/InvenTree/build/models.py @@ -118,11 +118,10 @@ class Build(models.Model): completion_date = models.DateField(null=True, blank=True) completed_by = models.ForeignKey(User, - on_delete=models.SET_NULL, - blank=True, null=True, - related_name='builds_completed' - ) - + on_delete=models.SET_NULL, + blank=True, null=True, + related_name='builds_completed' + ) URL = models.URLField(blank=True, help_text='Link to external URL') @@ -141,7 +140,6 @@ class Build(models.Model): for item in self.allocated_stock.all(): item.delete() - # Date of 'completion' is the date the build was cancelled self.completion_date = datetime.now().date() self.completed_by = user