Skip to content

Commit

Permalink
Merge branch 'bug-578609-fix_version_format'
Browse files Browse the repository at this point in the history
  • Loading branch information
zalun committed Jul 26, 2010
2 parents 9a8df82 + f2c1ac1 commit 33bd60d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions flightdeck/jetpack/models.py
Expand Up @@ -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 "
Expand Down
2 changes: 1 addition & 1 deletion flightdeck/jetpack/templates/_package_revisions_list.html
Expand Up @@ -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>
Expand Down

0 comments on commit 33bd60d

Please sign in to comment.