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