Fix problem with __unicode__ on Constraint (spotted by Ryan Cross)
- Legacy-Id: 3735
This commit is contained in:
parent
af8c1b4bf8
commit
1c0d859a80
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue