Permalink
Browse files

* display the latest status name if not latest_uploaded

  • Loading branch information...
1 parent 2629e98 commit e4d50e3b8d6a8b201baf5cb5ecbdd0686db80939 @zalun zalun committed Feb 22, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 apps/jetpack/models.py
  2. +1 −1 apps/person/templates/_dashboard_addon.html
View
@@ -174,7 +174,7 @@ def get_status_url(self):
def get_status_name(self):
""":returns: (string) the name of the AMO status or None
"""
- return constants.STATUS_NAMES.get(self.amo_status, None)
+ return constants.STATUS_NAMES.get(self.amo_status, '---')
def upload_to_amo(self, hashtag):
"""Uploads Package to AMO, updates or creates as a new Addon
@@ -12,7 +12,7 @@
</p>
{# <p>last updated: <span class="amo-last_updated no-data">---</span></p> #}
<p>review status:
- <span class="amo-review_status">{{ item.latest_uploaded.get_status_name() if item.latest_uploaded else '---' }}</span>
+ <span class="amo-review_status">{{ item.latest_uploaded.get_status_name() if item.latest_uploaded else item.latest.get_status_name() }}</span>
</p>
<ul class="UI_AMO_Actions">

0 comments on commit e4d50e3

Please sign in to comment.