diff --git a/passbook/admin/templates/administration/outpost/list.html b/passbook/admin/templates/administration/outpost/list.html index 8b3b54d3b..6fb976943 100644 --- a/passbook/admin/templates/administration/outpost/list.html +++ b/passbook/admin/templates/administration/outpost/list.html @@ -60,12 +60,10 @@ {% with ver=outpost.deployment_version %} - {% if ver.outdated %} - {% if ver.version == "" %} - - - {% else %} - {% blocktrans with is=ver.version should=ver.should %}{{ is }}, should be {{ should }}{% endblocktrans %} - {% endif %} + {% if not ver.version %} + + {% elif ver.outdated %} + {% blocktrans with is=ver.version should=ver.should %}{{ is }}, should be {{ should }}{% endblocktrans %} {% else %} {{ ver.version }} {% endif %} diff --git a/passbook/outposts/models.py b/passbook/outposts/models.py index 2ec2147f7..90a3df308 100644 --- a/passbook/outposts/models.py +++ b/passbook/outposts/models.py @@ -119,7 +119,7 @@ class Outpost(models.Model): key = self.state_cache_prefix("version") value = cache.get(key, None) if not value: - return {"version": "", "outdated": False, "should": OUR_VERSION} + return {"version": None, "outdated": False, "should": OUR_VERSION} try: outpost_version = parse(value) return {