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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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