def save(self, *args, **kwargs): is_create = False if not self.id: is_create = True if not self.slug: self.slug = unique_slugify(self, self.name) super(Childcare, self).save(*args, **kwargs) if is_create: roles_childcare_init_new(self)
def save(self, *args, **kwargs): if not self.id: self.slug = unique_slugify(self, self.title) super(News, self).save(*args, **kwargs)
def save(self, *args, **kwargs): self.komm_ssb_kode = self.get_ssb_code() unique_slugify(self, self.name, slug_field_name='slug') super(Fylke, self).save(*args, **kwargs)
def save(self, *args, **kwargs): unique_slugify(self, self.name, slug_field_name='slug') super(PoliceDistrict, self).save(*args, **kwargs)