summaryrefslogtreecommitdiff
path: root/tests/custom_pk
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/custom_pk
parentbb13711451157d5081c2d2a297820f6bc131ac27 (diff)
downloaddjango-555e3a848e7ac13580371c7eafbc89195fee6ea9.tar.gz
Removed unused __str__() methods in tests models.
Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1.
Diffstat (limited to 'tests/custom_pk')
-rw-r--r--tests/custom_pk/models.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/custom_pk/models.py b/tests/custom_pk/models.py
index 0b272c1135..edfc6712f3 100644
--- a/tests/custom_pk/models.py
+++ b/tests/custom_pk/models.py
@@ -29,16 +29,10 @@ class Business(models.Model):
class Meta:
verbose_name_plural = 'businesses'
- def __str__(self):
- return self.name
-
class Bar(models.Model):
id = MyAutoField(primary_key=True, db_index=True)
- def __str__(self):
- return repr(self.pk)
-
class Foo(models.Model):
bar = models.ForeignKey(Bar, models.CASCADE)