📅  最后修改于: 2022-03-11 14:46:57.236000             🧑  作者: Mango
class Product(models.Model):
fields here
def save(self, *args, **kwargs):
self.tags = self.category + '' + self.subcategory
super(Product, self).save(*args, **kwargs)