PEP style fixes

This commit is contained in:
Oliver Walters 2020-12-16 16:15:39 +11:00
parent 597bf8be73
commit a8704a05d6
2 changed files with 3 additions and 8 deletions

View File

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

View File

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