Add string output for doc comment

This commit is contained in:
Magnus Hagander
2010-03-21 18:24:12 +01:00
parent f151a641f0
commit c80daa4b4e

View File

@ -34,3 +34,6 @@ class DocComment(PgModel, models.Model):
return "%s %s" % (self.submitter.first_name, self.submitter.last_name)
else:
return ''
def __unicode__(self):
return "%s ver %s: %s" % (self.file, self.version, self.comment[:50])