mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-03 13:58:47 +00:00
PEP style fixes
This commit is contained in:
parent
6fd1abb07a
commit
758e402a66
@ -5,7 +5,6 @@ JSON API for the Stock app
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from decimal import Decimal, InvalidOperation
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
@ -17,7 +16,6 @@ from django.db.models import Q
|
|||||||
|
|
||||||
from rest_framework import status
|
from rest_framework import status
|
||||||
from rest_framework.serializers import ValidationError
|
from rest_framework.serializers import ValidationError
|
||||||
from rest_framework.views import APIView
|
|
||||||
from rest_framework.response import Response
|
from rest_framework.response import Response
|
||||||
from rest_framework import generics, filters, permissions
|
from rest_framework import generics, filters, permissions
|
||||||
|
|
||||||
|
@ -539,6 +539,7 @@ class StockRemoveSerializer(StockAdjustmentSerializer):
|
|||||||
notes=notes
|
notes=notes
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class StockTransferSerializer(StockAdjustmentSerializer):
|
class StockTransferSerializer(StockAdjustmentSerializer):
|
||||||
"""
|
"""
|
||||||
Serializer for transferring (moving) stock item(s)
|
Serializer for transferring (moving) stock item(s)
|
||||||
@ -588,5 +589,5 @@ class StockTransferSerializer(StockAdjustmentSerializer):
|
|||||||
location,
|
location,
|
||||||
notes,
|
notes,
|
||||||
request.user,
|
request.user,
|
||||||
quantity=item['quantity']
|
quantity=quantity
|
||||||
)
|
)
|
||||||
|
@ -7,7 +7,7 @@ from __future__ import unicode_literals
|
|||||||
|
|
||||||
from django.core.exceptions import ValidationError
|
from django.core.exceptions import ValidationError
|
||||||
from django.views.generic.edit import FormMixin
|
from django.views.generic.edit import FormMixin
|
||||||
from django.views.generic import DetailView, ListView, UpdateView
|
from django.views.generic import DetailView, ListView
|
||||||
from django.forms.models import model_to_dict
|
from django.forms.models import model_to_dict
|
||||||
from django.forms import HiddenInput
|
from django.forms import HiddenInput
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
|
Loading…
x
Reference in New Issue
Block a user