From a8704a05d649439d3330d88ccb94f255525cc866 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 16 Dec 2020 16:15:39 +1100 Subject: [PATCH] PEP style fixes --- InvenTree/build/forms.py | 6 +++--- InvenTree/build/serializers.py | 5 ----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/InvenTree/build/forms.py b/InvenTree/build/forms.py index fef116d7f3..48e1e06ca7 100644 --- a/InvenTree/build/forms.py +++ b/InvenTree/build/forms.py @@ -33,10 +33,10 @@ class EditBuildForm(HelperForm): } target_date = forms.DateField( - widget=forms.DateInput( - attrs={'type': 'date'} + widget=forms.DateInput( + attrs={'type': 'date'} ) - ) + ) class Meta: model = Build diff --git a/InvenTree/build/serializers.py b/InvenTree/build/serializers.py index dc28b7c82f..b71aaecc61 100644 --- a/InvenTree/build/serializers.py +++ b/InvenTree/build/serializers.py @@ -5,16 +5,12 @@ JSON serializers for Build API # -*- coding: utf-8 -*- from __future__ import unicode_literals -import datetime - -from django.db.models import Q from django.db.models import Case, When, Value from django.db.models import BooleanField from rest_framework import serializers from InvenTree.serializers import InvenTreeModelSerializer -from InvenTree.status_codes import BuildStatus from stock.serializers import StockItemSerializerBrief from part.serializers import PartBriefSerializer @@ -59,7 +55,6 @@ class BuildSerializer(InvenTreeModelSerializer): return queryset - def __init__(self, *args, **kwargs): part_detail = kwargs.pop('part_detail', False)