Permalink
Browse files

added a __unicode__ method to Migration model

  • Loading branch information...
paltman committed Feb 7, 2011
1 parent cf3ddba commit 503af7115bc99f150a0c84ee5e47d3ebb561c14d
Showing with 3 additions and 0 deletions.
  1. +3 −0 nashvegas/models.py
View
@@ -9,3 +9,6 @@ class Migration(models.Model):
date_created = models.DateTimeField(default=datetime.now)
content = models.TextField()
scm_version = models.CharField(max_length=50, null=True, blank=True)
+
+ def __unicode__(self):
+ return unicode("%s [%s]" % (self.migration_label, self.scm_version))

0 comments on commit 503af71

Please sign in to comment.