You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

models.py 274B

12345678910111213
  1. from django.db import models
  2. class Item(models.Model):
  3. title = models.CharField(max_length=255)
  4. pass
  5. class StockRecord(models.Model):
  6. product = models.ForeignKey('product.Item')
  7. price_excl_tax = models.FloatField()
  8. tax = models.FloatField()