mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-20 13:56:30 +00:00
Papa Pep
This commit is contained in:
@ -88,7 +88,7 @@ class PartRevision(models.Model):
|
||||
|
||||
name = models.CharField(max_length=100)
|
||||
description = models.CharField(max_length=500)
|
||||
revision_date = models.DateField(auto_now_add = True)
|
||||
revision_date = models.DateField(auto_now_add=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
@ -19,4 +19,4 @@ class PartCategorySerializer(serializers.ModelSerializer):
|
||||
fields = ('pk',
|
||||
'name',
|
||||
'description',
|
||||
'path')
|
||||
'path')
|
||||
|
@ -14,4 +14,4 @@ urlpatterns = [
|
||||
|
||||
# Display list of parts
|
||||
url(r'^$', views.PartList.as_view())
|
||||
]
|
||||
]
|
||||
|
@ -6,6 +6,7 @@ from rest_framework import generics
|
||||
from .models import PartCategory, Part
|
||||
from .serializers import PartSerializer, PartCategorySerializer
|
||||
|
||||
|
||||
def index(request):
|
||||
return HttpResponse("Hello world. This is the parts page")
|
||||
|
||||
|
Reference in New Issue
Block a user