mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Style fixes
This commit is contained in:
parent
2e133b7744
commit
7e1fbf8a04
@ -1,13 +1,9 @@
|
||||
from rest_framework.views import exception_handler
|
||||
|
||||
|
||||
#class APIValidationError()
|
||||
|
||||
def api_exception_handler(exc, context):
|
||||
response = exception_handler(exc, context)
|
||||
|
||||
#print(response)
|
||||
|
||||
# Now add the HTTP status code to the response.
|
||||
if response is not None:
|
||||
|
||||
|
@ -187,20 +187,3 @@ class PartParameter(models.Model):
|
||||
class Meta:
|
||||
verbose_name = "Part Parameter"
|
||||
verbose_name_plural = "Part Parameters"
|
||||
|
||||
|
||||
class PartRevision(models.Model):
|
||||
""" A PartRevision represents a change-notification to a Part
|
||||
A Part may go through several revisions in its lifetime,
|
||||
which should be tracked.
|
||||
UniqueParts can have a single associated PartRevision
|
||||
"""
|
||||
|
||||
part = models.ForeignKey(Part, on_delete=models.CASCADE)
|
||||
|
||||
name = models.CharField(max_length=100)
|
||||
description = models.CharField(max_length=500)
|
||||
revision_date = models.DateField(auto_now_add=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
@ -1,4 +1,4 @@
|
||||
from django.conf.urls import url, include
|
||||
from django.conf.urls import url
|
||||
|
||||
from . import views
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
import django_filters
|
||||
from django_filters.rest_framework import FilterSet, DjangoFilterBackend
|
||||
from django_filters import NumberFilter
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
from django.conf.urls import url, include
|
||||
from django.conf.urls import url
|
||||
|
||||
from . import views
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
import django_filters
|
||||
from django_filters.rest_framework import FilterSet, DjangoFilterBackend
|
||||
from django_filters import NumberFilter
|
||||
|
||||
|
@ -5,7 +5,7 @@ from django.db import models
|
||||
# from django.contrib.auth.models import User
|
||||
|
||||
from supplier.models import Customer
|
||||
from part.models import Part, PartRevision
|
||||
from part.models import Part
|
||||
|
||||
|
||||
class UniquePartManager(models.Manager):
|
||||
|
@ -1,4 +1,4 @@
|
||||
from django.conf.urls import url, include
|
||||
from django.conf.urls import url
|
||||
|
||||
from . import views
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
import django_filters
|
||||
from django_filters.rest_framework import FilterSet, DjangoFilterBackend
|
||||
from django_filters import NumberFilter
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user