コード例 #1
0
 def save(self, *args, **kwargs):
     name = '{0} {1} {2}'.format(self.seller, self.status, self.tracking)
     self.slug = slugify(name)
     models.Model.save(self, *args, **kwargs)
コード例 #2
0
 def save(self, *args, **kwargs):
     name = '{0} {1}'.format(self.type, self.value)
     self.slug = slugify(name)
     models.Model.save(self, *args, **kwargs)
コード例 #3
0
 def save(self, *args, **kwargs):
     name = '{0} {1}'.format(self.product, self.identifier)
     self.slug = slugify(name)
     models.Model.save(self, *args, **kwargs)
コード例 #4
0
 def save(self, *args, **kwargs):
     name = '{0} {1}'.format(self.carrier, self.number)
     self.slug = slugify(name)
     models.Model.save(self, *args, **kwargs)
コード例 #5
0
 def save(self, *args, **kwargs):
     name = '{0} {1}'.format(self.supplier, self.tracking)
     self.slug = slugify(name)
     models.Model.save(self, *args, **kwargs)
コード例 #6
0
 def save(self, *args, **kwargs):
     name = '{0}'.format(self.product)
     self.slug = slugify(name)
     models.Model.save(self, *args, **kwargs)
コード例 #7
0
 def save(self, *args, **kwargs):
     self.slug = slugify(self.name)
     models.Model.save(self, *args, **kwargs)
コード例 #8
0
 def save(self, *args, **kwargs):
     self.slug = slugify(self.default_slug())
     super(SlugModel, self).save(*args, **kwargs)