From 00f7ece6b4237766eb915caf9993ac4c2649caef Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 13 May 2019 21:42:05 +1000 Subject: [PATCH] PEP fixes --- InvenTree/part/models.py | 2 +- InvenTree/part/views.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index c057c7930e..da989c525a 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -534,7 +534,7 @@ class Part(models.Model): return self.supplier_parts.count() def copyBomFrom(self, other): - """ Duplicates the BOM from another part. + """ Duplicates the BOM from another part. This should only be called during part creation, and it does not delete any existing BOM items for *this* part. diff --git a/InvenTree/part/views.py b/InvenTree/part/views.py index 3f5a16ef39..b78fcf7239 100644 --- a/InvenTree/part/views.py +++ b/InvenTree/part/views.py @@ -235,7 +235,6 @@ class PartDuplicate(AjaxCreateView): return initials - class PartCreate(AjaxCreateView): """ View for creating a new Part object.