summaryrefslogtreecommitdiff
path: root/tests/from_db_value
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/from_db_value
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/from_db_value')
-rw-r--r--tests/from_db_value/models.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/tests/from_db_value/models.py b/tests/from_db_value/models.py
index 5c5e5e1dbf..58e8ec3a27 100644
--- a/tests/from_db_value/models.py
+++ b/tests/from_db_value/models.py
@@ -6,10 +6,6 @@ from django.db import models
class Cash(decimal.Decimal):
currency = 'USD'
- def __str__(self):
- s = super().__str__(self)
- return '%s %s' % (s, self.currency)
-
class CashField(models.DecimalField):
def __init__(self, **kwargs):
@@ -25,6 +21,3 @@ class CashField(models.DecimalField):
class CashModel(models.Model):
cash = CashField()
-
- def __str__(self):
- return str(self.cash)