Skip to content

Commit

Permalink
Add str method
Browse files Browse the repository at this point in the history
  • Loading branch information
eheinrich committed Aug 16, 2019
1 parent 7ea4088 commit 29d69ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions observation_portal/proposals/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ class CollaborationAllocation(models.Model):
telescope_name = models.CharField(max_length=255)
allocation = models.FloatField(default=0)

def __str__(self):
return f'CollaborationAllocation for {self.sca.id}-{self.telescope_name}'


class Proposal(models.Model):
id = models.CharField(max_length=255, primary_key=True)
Expand Down

0 comments on commit 29d69ed

Please sign in to comment.