From 4a092ec6032736f52bcc2e4d9b6cc10e6ff2d4d6 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sat, 20 Jun 2015 01:09:42 -0500 Subject: [PATCH] markov: have context in target's __unicode__() --- dr_botzo/markov/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dr_botzo/markov/models.py b/dr_botzo/markov/models.py index e163762..72a3c6e 100644 --- a/dr_botzo/markov/models.py +++ b/dr_botzo/markov/models.py @@ -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):