mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +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,
|
description = models.CharField(max_length=250,
|
||||||
blank=True)
|
blank=True)
|
||||||
|
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return "{mpn} - {supplier}".format(
|
return "{mpn} - {supplier}".format(
|
||||||
mpn = self.MPN,
|
mpn = self.MPN,
|
||||||
@ -53,6 +54,7 @@ class SupplierPriceBreak(models.Model):
|
|||||||
currency = models.CharField(max_length=10,
|
currency = models.CharField(max_length=10,
|
||||||
blank=True)
|
blank=True)
|
||||||
|
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return "{mpn} - {cost}{currency} @ {quan}".format(
|
return "{mpn} - {cost}{currency} @ {quan}".format(
|
||||||
mpn=part.MPN,
|
mpn=part.MPN,
|
||||||
|
@ -3,9 +3,11 @@ from django.http import HttpResponse
|
|||||||
|
|
||||||
from .models import Supplier
|
from .models import Supplier
|
||||||
|
|
||||||
|
|
||||||
def index(request):
|
def index(request):
|
||||||
return HttpResponse("This is the suppliers page")
|
return HttpResponse("This is the suppliers page")
|
||||||
|
|
||||||
|
|
||||||
def supplierDetail(request, supplier_id):
|
def supplierDetail(request, supplier_id):
|
||||||
supplier = get_object_or_404(Supplier, pk=supplier_id)
|
supplier = get_object_or_404(Supplier, pk=supplier_id)
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@ from django.contrib import admin
|
|||||||
|
|
||||||
from .models import UniquePart
|
from .models import UniquePart
|
||||||
|
|
||||||
|
|
||||||
class UniquePartAdmin(admin.ModelAdmin):
|
class UniquePartAdmin(admin.ModelAdmin):
|
||||||
list_display = ('part', 'revision', 'serial', 'creation_date')
|
list_display = ('part', 'revision', 'serial', 'creation_date')
|
||||||
|
|
||||||
|
@ -4,4 +4,3 @@ from django.http import HttpResponse
|
|||||||
|
|
||||||
def index(request):
|
def index(request):
|
||||||
return HttpResponse("This is the Tracking page")
|
return HttpResponse("This is the Tracking page")
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user