add settings version to version column in snapshots log
This commit is contained in:
parent
7c6290bd89
commit
a2626a0b58
|
@ -84,6 +84,14 @@ class SnapshotsLog(Thing):
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
def get_version(self):
|
||||||
|
if not self.snapshot:
|
||||||
|
return self.version
|
||||||
|
settings_version = self.snapshot.settings_version or ''
|
||||||
|
settings_version = "".join([x[0] for x in settings_version.split(' ') if x])
|
||||||
|
|
||||||
|
return "{} ({})".format(self.version, settings_version)
|
||||||
|
|
||||||
|
|
||||||
class PlaceholdersLog(Thing):
|
class PlaceholdersLog(Thing):
|
||||||
"""A Placeholder log."""
|
"""A Placeholder log."""
|
||||||
|
|
|
@ -87,7 +87,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ snap.version }}
|
{{ snap.get_version() }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{% if snap.get_device() %}
|
{% if snap.get_device() %}
|
||||||
|
|
Reference in New Issue