Skip to content

Commit

Permalink
__str__ for datasaets should include accession number as well as titl…
Browse files Browse the repository at this point in the history
…e. Makes selecting them as foreign keys easier
  • Loading branch information
rwblair committed Feb 4, 2016
1 parent bf71f86 commit 93f9daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion open_fmri/apps/dataset/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class Dataset(models.Model):
contact = models.ForeignKey('Contact', blank=True, null=True)

def __str__(self):
return self.project_name
return self.accession_number + ": " + self.project_name

def save(self, *args, **kwargs):
notify = False
Expand Down

0 comments on commit 93f9daa

Please sign in to comment.