Commits

Guilherme Gondim  committed f8d170f

fix bug related to slug field's unique_for_date

  • Participants
  • Parent commits 32565d2
  • Branches 2.x-exper1

Comments (0)

Files changed (1)

File diario/models/mixins/base.py

     class Meta:
         abstract = True
 
-    def save(self, *args, **kwargs):
+    def clean(self):
         if self.visible and not self.pub_date:
             self.pub_date = datetime.now()
-        return super(BasicEntryMixin, self).save(*args, **kwargs)
 
 
 class AuthorMixin(models.Model):