mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fixes
This commit is contained in:
parent
c75d892fd7
commit
7987fcc7cc
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user