daily pastebin goal
76%
SHARE
TWEET

Untitled

a guest Jun 19th, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Item(models.Model):
  2.     name = models.CharField(max_length = 200, )
  3.     price = models.FloatField(max_length = 10, )
  4.  
  5. class Action(models.Model):
  6.     item = models.ForeignKey(Item)
  7.     count = models.FloatField(max_length = 10, )
  8.     price = models.FloatField(max_length = 10, ) #take from current value of item.price
RAW Paste Data
Top