Exemple #1
0
    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)
Exemple #2
0
    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)
Exemple #3
0
 def save(self, *args, **kwargs):
     if not self.id:
         self.slug = unique_slugify(self, self.title)
     super(News, self).save(*args, **kwargs)
Exemple #4
0
 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) 
Exemple #5
0
 def save(self, *args, **kwargs):
     unique_slugify(self, self.name, slug_field_name='slug')
     super(PoliceDistrict, self).save(*args, **kwargs)