Editting ForeignKey from "child" table
- by profuel
I'm programming on py with django. I have models:
class Product(mymodels.Base):
title = models.CharField()
price = models.ForeignKey(Price)
promoPrice = models.ForeignKey(Price, related_name="promo_price")
class Price(mymodels.Base):
value = models.DecimalField(max_digits=10, decimal_places=3)
taxValue =…