Skip to content

Commit

Permalink
openhub/models.py: Fix str method
Browse files Browse the repository at this point in the history
self.project1 -> self.project for MostCommit model
self.project2 -> self.project for MostRecentCommit model

Fixes #116
  • Loading branch information
rohanrk committed Apr 11, 2018
1 parent b24e25a commit bc383fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openhub/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class MostCommit(models.Model):
commits = models.IntegerField()

def __str__(self):
return self.project1
return self.project


class MostRecentCommit(models.Model):
Expand All @@ -108,7 +108,7 @@ class MostRecentCommit(models.Model):
date = models.CharField(max_length=100)

def __str__(self):
return self.project2
return self.project


class AffiliatedCommitter(models.Model):
Expand Down

0 comments on commit bc383fd

Please sign in to comment.