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()
|
self.full_clean()
|
||||||
super(EuscanResult, self).save(*args, **kwargs)
|
super(EuscanResult, self).save(*args, **kwargs)
|
||||||
|
|
||||||
|
@property
|
||||||
def messages(self):
|
def messages(self):
|
||||||
result = json.loads(self.result)
|
result = json.loads(self.result)
|
||||||
|
|
||||||
|
@ -209,7 +209,7 @@ def package(request, category, package):
|
|||||||
'upstream': upstream,
|
'upstream': upstream,
|
||||||
'vlog': vlog,
|
'vlog': vlog,
|
||||||
'log': log,
|
'log': log,
|
||||||
'msg': log.messages() if log else "",
|
'msg': log.messages if log else "",
|
||||||
'last_scan': last_scan,
|
'last_scan': last_scan,
|
||||||
'favourited': favourited,
|
'favourited': favourited,
|
||||||
'refresh_requested': refresh_requested,
|
'refresh_requested': refresh_requested,
|
||||||
@ -249,7 +249,7 @@ def problem(request, category, package):
|
|||||||
'package': package,
|
'package': package,
|
||||||
'packaged': packaged,
|
'packaged': packaged,
|
||||||
'upstream': upstream,
|
'upstream': upstream,
|
||||||
'msg': log.messages() if log else "",
|
'msg': log.messages if log else "",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user