Permalink
Browse files

version format fixed

  • Loading branch information...
zalun committed Jul 26, 2010
1 parent 9a8df82 commit f2c1ac172eea55ae103af67e48d0de3597cd368e
Showing with 2 additions and 3 deletions.
  1. +1 −2 flightdeck/jetpack/models.py
  2. +1 −1 flightdeck/jetpack/templates/_package_revisions_list.html
@@ -715,8 +715,7 @@ def export_files_with_dependencies(self, packages_dir):
def get_version_name(self):
- name = '%s ' % self.version_name if self.version_name else ''
- return '%srev. %s' % (name, self.revision_number)
+ return self.version_name if self.version_name else "%s.rev%s" % (self.package.version_name, self.revision_number)
class Module(models.Model):
" the only way to 'change' the module is to assign it to different PackageRequest "
@@ -6,7 +6,7 @@ <h3>{{ package.full_name}} - Revisions</h3>
{% for revision in revisions %}
<li>
<em class="date">{{ revision.created_at|date:"Y-m-d" }}</em>
- <a href="{{ revision.get_absolute_url }}">{{ revision|version_name }}</a>
+ <a href="{{ revision.get_absolute_url }}">{{ revision.get_version_name }}</a>
</li>
{% endfor %}
</ul>

0 comments on commit f2c1ac1

Please sign in to comment.