Explorar el Código

Fix auto slugs on death announcements

Colin Powell hace 5 años
padre
commit
7cf6ba9855
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      apps/remember/models.py

+ 1 - 1
apps/remember/models.py

@@ -85,7 +85,7 @@ class Announcement(PublishExpiringModel):
     first_name = models.CharField(_('First name'), max_length=70)
     middle_name = models.CharField(_('Middle name'), max_length=70, blank=True, null=True)
     last_name = models.CharField(_('Last name'), max_length=70)
-    slug = AutoSlugField(_('slug'), populate_from='name', editable=True)
+    slug = AutoSlugField(_('slug'), populate_from=['first_name', 'middle_name', 'last_name'], editable=True)
     copy = models.TextField(_('Copy'))
     '''
     nickname = models.CharField(_('Nickname'), blank=True, null=True, max_length=100)