2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 12:06:44 +00:00

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: except Part.DoesNotExist:
raise ValidationError({'sub_part': _('Sub part must be specified')}) raise ValidationError({'sub_part': _('Sub part must be specified')})
class Meta: class Meta:
verbose_name = _("BOM Item") verbose_name = _("BOM Item")

View File

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