PEP fixes

This commit is contained in:
Oliver Walters 2020-11-24 11:56:51 +11:00
parent ce82579930
commit b5d75d6e6a
2 changed files with 1 additions and 3 deletions

View File

@ -1909,7 +1909,6 @@ class BomItem(models.Model):
except Part.DoesNotExist:
raise ValidationError({'sub_part': _('Sub part must be specified')})
class Meta:
verbose_name = _("BOM Item")

View File

@ -2449,7 +2449,6 @@ class BomItemCreate(AjaxCreateView):
# Eliminate any options that are already in the BOM!
sub_part_query = sub_part_query.exclude(id__in=[item.id for item in part.getRequiredParts()])
except (ValueError, Part.DoesNotExist):
pass