summaryrefslogtreecommitdiff
path: root/tests/db_functions
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/db_functions
parentbb13711451157d5081c2d2a297820f6bc131ac27 (diff)
downloaddjango-555e3a848e7ac13580371c7eafbc89195fee6ea9.tar.gz
Removed unused __str__() methods in tests models.
Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1.
Diffstat (limited to 'tests/db_functions')
-rw-r--r--tests/db_functions/models.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/db_functions/models.py b/tests/db_functions/models.py
index 0deea8f54c..97584326aa 100644
--- a/tests/db_functions/models.py
+++ b/tests/db_functions/models.py
@@ -10,9 +10,6 @@ class Author(models.Model):
goes_by = models.CharField(max_length=50, null=True, blank=True)
age = models.PositiveSmallIntegerField(default=30)
- def __str__(self):
- return self.name
-
class Article(models.Model):
authors = models.ManyToManyField(Author, related_name='articles')
@@ -24,9 +21,6 @@ class Article(models.Model):
updated = models.DateTimeField(null=True, blank=True)
views = models.PositiveIntegerField(default=0)
- def __str__(self):
- return self.title
-
class Fan(models.Model):
name = models.CharField(max_length=50)
@@ -34,9 +28,6 @@ class Fan(models.Model):
author = models.ForeignKey(Author, models.CASCADE, related_name='fans')
fan_since = models.DateTimeField(null=True, blank=True)
- def __str__(self):
- return self.name
-
class DTModel(models.Model):
name = models.CharField(max_length=32)
@@ -48,9 +39,6 @@ class DTModel(models.Model):
end_time = models.TimeField(null=True, blank=True)
duration = models.DurationField(null=True, blank=True)
- def __str__(self):
- return 'DTModel({})'.format(self.name)
-
class DecimalModel(models.Model):
n1 = models.DecimalField(decimal_places=2, max_digits=6)