pepe is a racist meme

This commit is contained in:
Oliver Walters 2017-03-28 23:21:26 +11:00
parent 9aebdab1c2
commit a5009147c3
6 changed files with 18 additions and 14 deletions

View File

@ -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,

View File

@ -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)

View File

@ -2,6 +2,7 @@ from django.contrib import admin
from .models import UniquePart
class UniquePartAdmin(admin.ModelAdmin):
list_display = ('part', 'revision', 'serial', 'creation_date')

View File

@ -4,4 +4,3 @@ from django.http import HttpResponse
def index(request):
return HttpResponse("This is the Tracking page")