Fix problem with __unicode__ on Constraint (spotted by Ryan Cross)

- Legacy-Id: 3735
This commit is contained in:
Ole Laursen 2011-11-30 17:20:03 +00:00
parent af8c1b4bf8
commit 1c0d859a80

View file

@ -126,7 +126,7 @@ class Constraint(models.Model):
name = models.ForeignKey(ConstraintName)
def __unicode__(self):
return u"%s %s %s" % (self.source, self.name.lower(), self.target)
return u"%s %s %s" % (self.source, self.name.name.lower(), self.target)
class Session(models.Model):
"""Session records that a group should have a session on the