summaryrefslogtreecommitdiff
path: root/tests/unmanaged_models
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/unmanaged_models
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/unmanaged_models')
-rw-r--r--tests/unmanaged_models/models.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/unmanaged_models/models.py b/tests/unmanaged_models/models.py
index c8da49aa07..a3aefbe882 100644
--- a/tests/unmanaged_models/models.py
+++ b/tests/unmanaged_models/models.py
@@ -15,9 +15,6 @@ class A01(models.Model):
class Meta:
db_table = 'a01'
- def __str__(self):
- return self.f_a
-
class B01(models.Model):
fk_a = models.ForeignKey(A01, models.CASCADE)
@@ -29,9 +26,6 @@ class B01(models.Model):
# 'managed' is True by default. This tests we can set it explicitly.
managed = True
- def __str__(self):
- return self.f_a
-
class C01(models.Model):
mm_a = models.ManyToManyField(A01, db_table='d01')
@@ -41,8 +35,6 @@ class C01(models.Model):
class Meta:
db_table = 'c01'
- def __str__(self):
- return self.f_a
# All of these models use the same tables as the previous set (they are shadows
# of possibly a subset of the columns). There should be no creation errors,
@@ -56,9 +48,6 @@ class A02(models.Model):
db_table = 'a01'
managed = False
- def __str__(self):
- return self.f_a
-
class B02(models.Model):
class Meta:
@@ -69,9 +58,6 @@ class B02(models.Model):
f_a = models.CharField(max_length=10, db_index=True)
f_b = models.IntegerField()
- def __str__(self):
- return self.f_a
-
# To re-use the many-to-many intermediate table, we need to manually set up
# things up.
@@ -84,9 +70,6 @@ class C02(models.Model):
db_table = 'c01'
managed = False
- def __str__(self):
- return self.f_a
-
class Intermediate(models.Model):
a02 = models.ForeignKey(A02, models.CASCADE, db_column="a01_id")