mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fixes
This commit is contained in:
parent
ce82579930
commit
b5d75d6e6a
@ -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")
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user