mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
PEP fixes
This commit is contained in:
parent
ce82579930
commit
b5d75d6e6a
@ -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")
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user