diff --git a/InvenTree/InvenTree/views.py b/InvenTree/InvenTree/views.py index 68f6ebb4bd..6118f00fd0 100644 --- a/InvenTree/InvenTree/views.py +++ b/InvenTree/InvenTree/views.py @@ -329,7 +329,7 @@ class IndexView(TemplateView): context = super(TemplateView, self).get_context_data(**kwargs) - context['starred'] = [star.part for star in self.request.user.starred_parts.all()] + context['starred'] = [star.part for star in self.request.user.starred_parts.all()] # Generate a list of orderable parts which have stock below their minimum values # TODO - Is there a less expensive way to get these from the database diff --git a/InvenTree/part/api.py b/InvenTree/part/api.py index 0ff95e1879..9db2bf102f 100644 --- a/InvenTree/part/api.py +++ b/InvenTree/part/api.py @@ -11,7 +11,6 @@ from rest_framework import status from rest_framework.response import Response from rest_framework import filters from rest_framework import generics, permissions -from rest_framework.serializers import ValidationError from django.db.models import Q from django.conf.urls import url, include diff --git a/InvenTree/part/serializers.py b/InvenTree/part/serializers.py index 48839311e4..847b3bb1a8 100644 --- a/InvenTree/part/serializers.py +++ b/InvenTree/part/serializers.py @@ -4,7 +4,7 @@ JSON serializers for Part app from rest_framework import serializers -from .models import Part, PartStar, PartAttachment +from .models import Part, PartStar from .models import SupplierPart, SupplierPriceBreak from .models import PartCategory from .models import BomItem