class Inventorys(models.Model):
title = models.CharField(max_length=20)
date_mod = models.DateField(("Date"), default=datetime.date.today)
def __str__(self):
return self.title
# Items dB
class Items(models.Model):
title = models.ForeignKey(InventoryHead, on_delete=models.CASCADE)
category = models.CharField(max_length=50)
item_type = models.CharField(max_length=50)
p_no = models.CharField(max_length=50)
item_des = models.CharField(max_length=501)
bond_no = models.CharField(max_length=50)
order_no = models.CharField(max_length=50)
serial_no = models.CharField(max_length=50)
invioce_date = models.DateField()
invoice_no = models.CharField(max_length=50)
location = models.CharField(max_length=50)
prc_quarter = models.CharField(max_length=50)
и нужно отображать. Таблица предметов с расшифровками. Когда пользователь нажимает на конкретный инвентарь