summaryrefslogtreecommitdiff
path: root/tests/test_utils
diff options
context:
space:
mode:
authorAuthor: Mads Jensen <mje@inducks.org>2020-01-22 15:05:56 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-04-15 20:20:32 +0200
commit6461583b6cc257d25880ef9a9fd7e2125ac53ce1 (patch)
treebbade5fb7117ac74da58e8f78b51cd7136a34b21 /tests/test_utils
parentf1a808a5025b63715d1034af2b96a6a5241d29e9 (diff)
Removed unused __str__() methods in tests models.
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com>
Diffstat (limited to 'tests/test_utils')
-rw-r--r--tests/test_utils/models.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/test_utils/models.py b/tests/test_utils/models.py
index f48c90dd08..c40801f81b 100644
--- a/tests/test_utils/models.py
+++ b/tests/test_utils/models.py
@@ -4,17 +4,11 @@ from django.db import models
class Car(models.Model):
name = models.CharField(max_length=100)
- def __str__(self):
- return self.name
-
class Person(models.Model):
name = models.CharField(max_length=100)
cars = models.ManyToManyField(Car, through='PossessedCar')
- def __str__(self):
- return self.name
-
class PossessedCar(models.Model):
car = models.ForeignKey(Car, models.CASCADE)