summaryrefslogtreecommitdiff
path: root/tests/model_regress
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/model_regress
parentbb13711451157d5081c2d2a297820f6bc131ac27 (diff)
Removed unused __str__() methods in tests models.
Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1.
Diffstat (limited to 'tests/model_regress')
-rw-r--r--tests/model_regress/models.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/model_regress/models.py b/tests/model_regress/models.py
index a9786e37ab..b55ed96097 100644
--- a/tests/model_regress/models.py
+++ b/tests/model_regress/models.py
@@ -17,9 +17,6 @@ class Article(models.Model):
# A utf-8 verbose name (Ångström's Articles) to test they are valid.
verbose_name = "\xc3\x85ngstr\xc3\xb6m's Articles"
- def __str__(self):
- return self.headline
-
class Movie(models.Model):
# Test models with non-default primary keys / AutoFields #5218
@@ -39,9 +36,6 @@ class Department(models.Model):
id = models.PositiveIntegerField(primary_key=True)
name = models.CharField(max_length=200)
- def __str__(self):
- return self.name
-
class Worker(models.Model):
department = models.ForeignKey(Department, models.CASCADE)