1. Guilherme Gondim
  2. django-diario

Commits

Guilherme Gondim  committed 3043ed7

Fix reference to self.title

  • Participants
  • Parent commits dc0d122
  • Branches master

Comments (0)

Files changed (1)

File diario/models.py

View file
             self.time_published = None
         # Set slug in case of not specified
         if not self.slug:
-            self.slug = slugify(self.name)
+            self.slug = slugify(self.title)
 
     @models.permalink
     def get_absolute_url(self):