euscanwww: messages becomes a property
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
parent
fd8c61d7e8
commit
29f143ff87
@ -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)
|
||||
|
||||
|
@ -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 "",
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user