1
나는 모델을 가지고 관련 공급 업체와 제품을 함께 고유하게 만들고 싶습니다.관련 모델 필드를 고유하게하려면 어떻게해야합니까?
class Vendoroffer(models.Model):
vendor = models.ForeignKey(Vendor)
Category = models.ForeignKey(Category)
product = models.ForeignKey(Product)
cost_price = models.DecimalField(max_digits=15 , decimal_places=2)