Example #1
0
 def save(self, *args, **kwargs):
     auto_save_current_user(self)
     if not self.slug:
         self.slug = slugify(self.title)
     else:
         self.slug = slugify(self.slug)
     super(ResourceCategory, self).save(*args, **kwargs)
Example #2
0
 def save(self, *args, **kwargs):
     auto_save_current_user(self)
     super(Resource, self).save(*args, **kwargs)
Example #3
0
 def save(self, *args, **kwargs):
     auto_save_current_user(self)
     super(Comment, self).save(*args, **kwargs)
Example #4
0
 def save(self, *args, **kwargs):
     auto_save_current_user(self)
     super(Follow, self).save(*args, **kwargs)
Example #5
0
 def save(self, *args, **kwargs):
     auto_save_current_user(self)
     super(SavedPost, self).save(*args, **kwargs)