Parcourir la source

Fix some labels

Jocelyn Delande il y a 9 ans
Parent
commit
aa300263b6
2 fichiers modifiés avec 4 ajouts et 3 suppressions
  1. 4 3
      costs/models.py
  2. 0 0
      costs/templates/costs/public_document_detail.html

+ 4 - 3
costs/models.py

@@ -21,8 +21,8 @@ class Document(models.Model):
     comment_html = models.TextField(blank=True, editable=False)
     date = models.DateField(default=datetime.datetime.now)
     type = models.CharField(max_length=10, choices=(
-        (TYPE_FACT, 'rapports de transparence'),
-        (TYPE_PLAN, 'scénario/estimation'),
+        (TYPE_FACT, 'rapport de transparence'),
+        (TYPE_PLAN, 'estimation ou étude'),
     ))
 
     def __str__(self):
@@ -187,7 +187,8 @@ class Good(AbstractResource):
         return self.price/self.provisioning_duration.days*(365.25/12)
 
     class Meta:
-        verbose_name = 'Bien'
+        verbose_name = "Matériel ou Frais d'accès"
+        verbose_name_plural = "Matériels ou Frais d'accès"
 
 
 class AbstractUse(models.Model):

costs/templates/costs/index.html → costs/templates/costs/public_document_detail.html