from django.db import models from locations.models import * from objects.models import * from django.contrib import admin class InventoryObject(models.Model): object = models.ForeignKey(Object) notes = models.TextField() quantity = models.IntegerField() unitprice = models.FloatField() class Inventory(models.Model): name = models.CharField(max_length=100) description = models.TextField() location = models.ForeignKey(Location) inventoryobjects = models.ManyToManyField(InventoryObject) admin.site.register(Inventory)