create django model field based on another field

Solutions on MaxInterview for create django model field based on another field by the best coders in the world

showing results for - "create django model field based on another field"
Erica
04 May 2017
1class Product(models.Model):
2    fields here     
3
4    def save(self, *args, **kwargs):
5        self.tags = self.category + '' + self.subcategory
6        super(Product, self).save(*args, **kwargs)
7