Skip to content

Commit c87452d

Browse files
committed
Always show the branch name in the Revision
When rendering revisions in the Django admin, always show the branch name.
1 parent ae9e688 commit c87452d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

codespeed/models.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,7 @@ def __str__(self):
145145
date = None
146146
else:
147147
date = self.date.isoformat(sep=" ")
148-
string = " - ".join(filter(None, (date, self.commitid, self.tag)))
149-
if self.branch.name != self.branch.project.default_branch:
150-
string += " - " + self.branch.name
148+
string = " - ".join(filter(None, (date, self.commitid, self.tag, self.branch.name)))
151149
return string
152150

153151
class Meta:

0 commit comments

Comments
 (0)