summaryrefslogtreecommitdiff
path: root/ishtar/ishtar_base/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar/ishtar_base/models.py')
-rw-r--r--ishtar/ishtar_base/models.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/ishtar/ishtar_base/models.py b/ishtar/ishtar_base/models.py
index d124addf2..2a8248804 100644
--- a/ishtar/ishtar_base/models.py
+++ b/ishtar/ishtar_base/models.py
@@ -247,7 +247,7 @@ class HistoryError(Exception):
class BaseHistorizedItem(models.Model):
history_modifier = models.ForeignKey(User, related_name='+',
- verbose_name=_(u"Last modifier"))
+ verbose_name=_(u"Last editor"))
class Meta:
abstract = True
@@ -1272,6 +1272,12 @@ class Treatment(BaseHistorizedItem, OwnPerms):
("delete_own_treatment", ugettext(u"Can delete own Treatment")),
)
+ def __unicode__(self):
+ lbl = unicode(self.treatment_type)
+ if self.person:
+ lbl += u" %s %s" % (_(u"by"), unicode(self.person))
+ return lbl
+
class TreatmentSource(Source):
class Meta:
verbose_name = _(u"Treatment documentation")