Parcourir la source

Remove date from doc title

Jocelyn Delande il y a 9 ans
Parent
commit
83db89046e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      costs/models.py

+ 1 - 1
costs/models.py

@@ -22,7 +22,7 @@ class Document(models.Model):
     ))
 
     def __str__(self):
-        return '{} {:%b %Y}'.format(self.name, self.date)
+        return self.name
 
     def get_absolute_url(self):
         return reverse('detail-document', kwargs={'pk': self.pk})