summaryrefslogtreecommitdiff
path: root/tests/many_to_one
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-04-30 09:13:23 +0200
committerGitHub <noreply@github.com>2020-04-30 09:13:23 +0200
commit555e3a848e7ac13580371c7eafbc89195fee6ea9 (patch)
treef3db796d8b7c9764d77da9444b4ca30150e6d65d /tests/many_to_one
parentbb13711451157d5081c2d2a297820f6bc131ac27 (diff)
downloaddjango-555e3a848e7ac13580371c7eafbc89195fee6ea9.tar.gz
Removed unused __str__() methods in tests models.
Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1.
Diffstat (limited to 'tests/many_to_one')
-rw-r--r--tests/many_to_one/models.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/many_to_one/models.py b/tests/many_to_one/models.py
index 6e00fb18fa..e9f8fbff76 100644
--- a/tests/many_to_one/models.py
+++ b/tests/many_to_one/models.py
@@ -37,9 +37,6 @@ class City(models.Model):
country = models.ForeignKey(Country, models.CASCADE, related_name='cities', null=True)
name = models.CharField(max_length=50)
- def __str__(self):
- return self.name
-
class District(models.Model):
city = models.ForeignKey(City, models.CASCADE, related_name='districts', null=True)