markov: have context in target's __unicode__()

This commit is contained in:
Brian S. Stephan 2015-06-20 01:09:42 -05:00
parent 2dc2b6a8a2
commit 4a092ec603
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class MarkovTarget(models.Model):
def __unicode__(self):
"""String representation."""
return u"{0:s}".format(self.name)
return u"{0:s} -> {1:s}".format(self.name, self.context.name)
class MarkovState(models.Model):