1. Daniel Greenfeld
  2. transifex

Commits

Diego Búrigo Zacarão  committed 1ebf082

bugfix: Minor change to be able to extract the i18n files

  • Participants
  • Parent commits 8bf3e9a
  • Branches default

Comments (0)

Files changed (1)

File vcs/models.py

View file
     modified = models.DateTimeField(auto_now=True, editable=False)
 
     def __repr__(self):
-        return _('<Unit: %s (%s)>') % (self.name, self.type)
+        return _('<Unit: %(name)s (%(type)s)>') % {'name': self.name,
+                                                   'type': self.type}
 
     class Meta:
         verbose_name = _('unit')