class HmsMedicine(models.Model):
id = models.IntegerField(primary_key=True)
medicine_name = models.CharField(max_length=100)
price = models.IntegerField(max_length=6)
class HmsBilling(models.Model):
id = models.IntegerField(primary_key=True)
regid = models.ForeignKey(HmsPatient, db_column='regid')
medicine = models.ForeignKey(HmsMedicine, db_column='medicine')
quantity = models.IntegerField()
rate = models.IntegerField()
我想在price
字段中有rate
字段的值。