From cd5bc395f260c0dd6df469a16ff6c270b8f4f449 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 26 Feb 2021 16:03:38 +1100 Subject: [PATCH] PEP fixes --- InvenTree/InvenTree/permissions.py | 2 +- InvenTree/part/api.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/InvenTree/InvenTree/permissions.py b/InvenTree/InvenTree/permissions.py index f4aa7f532c..9f34c0d918 100644 --- a/InvenTree/InvenTree/permissions.py +++ b/InvenTree/InvenTree/permissions.py @@ -84,4 +84,4 @@ class RolePermission(permissions.BasePermission): return False # All checks passed - return True \ No newline at end of file + return True diff --git a/InvenTree/part/api.py b/InvenTree/part/api.py index d10e87763d..c20d6bee60 100644 --- a/InvenTree/part/api.py +++ b/InvenTree/part/api.py @@ -12,12 +12,12 @@ from django.db.models import Q, F, Count, Prefetch, Sum from rest_framework import status from rest_framework.response import Response from rest_framework import filters, serializers -from rest_framework import generics, permissions +from rest_framework import generics from django.conf.urls import url, include from django.urls import reverse -from .models import Part, PartCategory, BomItem, PartStar +from .models import Part, PartCategory, BomItem from .models import PartParameter, PartParameterTemplate from .models import PartAttachment, PartTestTemplate from .models import PartSellPriceBreak