euscanwww: messages becomes a property

Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
volpino 2012-07-27 12:55:57 +02:00
parent fd8c61d7e8
commit 29f143ff87
2 changed files with 3 additions and 2 deletions

View File

@ -217,6 +217,7 @@ class EuscanResult(models.Model):
self.full_clean()
super(EuscanResult, self).save(*args, **kwargs)
@property
def messages(self):
result = json.loads(self.result)

View File

@ -209,7 +209,7 @@ def package(request, category, package):
'upstream': upstream,
'vlog': vlog,
'log': log,
'msg': log.messages() if log else "",
'msg': log.messages if log else "",
'last_scan': last_scan,
'favourited': favourited,
'refresh_requested': refresh_requested,
@ -249,7 +249,7 @@ def problem(request, category, package):
'package': package,
'packaged': packaged,
'upstream': upstream,
'msg': log.messages() if log else "",
'msg': log.messages if log else "",
}