summaryrefslogtreecommitdiff
path: root/tests/model_forms/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/model_forms/models.py')
-rw-r--r--tests/model_forms/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/model_forms/models.py b/tests/model_forms/models.py
index 5a80243574..05c6d71a4a 100644
--- a/tests/model_forms/models.py
+++ b/tests/model_forms/models.py
@@ -393,6 +393,9 @@ class Character(models.Model):
username = models.CharField(max_length=100)
last_action = models.DateTimeField()
+ def __str__(self):
+ return self.username
+
class StumpJoke(models.Model):
most_recently_fooled = models.ForeignKey(