PEP fixes

This commit is contained in:
Oliver Walters 2019-05-05 11:44:23 +10:00
parent c75d892fd7
commit 7987fcc7cc
3 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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