diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-04-30 09:13:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-30 09:13:23 +0200 |
| commit | 555e3a848e7ac13580371c7eafbc89195fee6ea9 (patch) | |
| tree | f3db796d8b7c9764d77da9444b4ca30150e6d65d /tests/null_queries | |
| parent | bb13711451157d5081c2d2a297820f6bc131ac27 (diff) | |
Removed unused __str__() methods in tests models.
Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1.
Diffstat (limited to 'tests/null_queries')
| -rw-r--r-- | tests/null_queries/models.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/null_queries/models.py b/tests/null_queries/models.py index f2d4caa745..298d4d9277 100644 --- a/tests/null_queries/models.py +++ b/tests/null_queries/models.py @@ -4,17 +4,11 @@ from django.db import models class Poll(models.Model): question = models.CharField(max_length=200) - def __str__(self): - return "Q: %s " % self.question - class Choice(models.Model): poll = models.ForeignKey(Poll, models.CASCADE) choice = models.CharField(max_length=200) - def __str__(self): - return "Choice: %s in poll %s" % (self.choice, self.poll) - # A set of models with an inner one pointing to two outer ones. |
