mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
pepe is a racist meme
This commit is contained in:
parent
9aebdab1c2
commit
a5009147c3
@ -34,6 +34,7 @@ class SupplierPart(models.Model):
|
||||
description = models.CharField(max_length=250,
|
||||
blank=True)
|
||||
|
||||
|
||||
def __str__(self):
|
||||
return "{mpn} - {supplier}".format(
|
||||
mpn = self.MPN,
|
||||
@ -53,6 +54,7 @@ class SupplierPriceBreak(models.Model):
|
||||
currency = models.CharField(max_length=10,
|
||||
blank=True)
|
||||
|
||||
|
||||
def __str__(self):
|
||||
return "{mpn} - {cost}{currency} @ {quan}".format(
|
||||
mpn=part.MPN,
|
||||
|
@ -3,9 +3,11 @@ from django.http import HttpResponse
|
||||
|
||||
from .models import Supplier
|
||||
|
||||
|
||||
def index(request):
|
||||
return HttpResponse("This is the suppliers page")
|
||||
|
||||
|
||||
def supplierDetail(request, supplier_id):
|
||||
supplier = get_object_or_404(Supplier, pk=supplier_id)
|
||||
|
||||
|
@ -2,6 +2,7 @@ from django.contrib import admin
|
||||
|
||||
from .models import UniquePart
|
||||
|
||||
|
||||
class UniquePartAdmin(admin.ModelAdmin):
|
||||
list_display = ('part', 'revision', 'serial', 'creation_date')
|
||||
|
||||
|
@ -4,4 +4,3 @@ from django.http import HttpResponse
|
||||
|
||||
def index(request):
|
||||
return HttpResponse("This is the Tracking page")
|
||||
|
Loading…
Reference in New Issue
Block a user