Нi! Here is an abstract example. I need uniqfield to immediately get values when filling in and updating records.
class Good(models.Model): title=models.CharField('Наименование',max_length=150) price=models.FloatField() uniqfield= .....?
For example, “Good1” price is 100.50, uniqfield="Good1_100.50, “Good1” price is 200, uniqfield=“Good1_200” of the slug type, only calculated from two fields:)
Is it possible to do this at the model level? Thank you.
p.s. I would appreciate a sample code:)