diff options
author | chillaranand <anand21nanda@gmail.com> | 2017-01-21 18:43:44 +0530 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-01-25 12:23:46 -0500 |
commit | d6eaf7c0183cd04b78f2a55e1d60bb7e59598310 (patch) | |
tree | ab02fd9949d4bfa23e27dea45e213ce334c883f0 /tests/from_db_value | |
parent | dc165ec8e5698ffc6dee6b510f1f92c9fd7467fe (diff) | |
download | django-d6eaf7c0183cd04b78f2a55e1d60bb7e59598310.tar.gz |
Refs #23919 -- Replaced super(ClassName, self) with super().
Diffstat (limited to 'tests/from_db_value')
-rw-r--r-- | tests/from_db_value/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/from_db_value/models.py b/tests/from_db_value/models.py index fae9565a02..2f2304ff0a 100644 --- a/tests/from_db_value/models.py +++ b/tests/from_db_value/models.py @@ -7,7 +7,7 @@ class Cash(decimal.Decimal): currency = 'USD' def __str__(self): - s = super(Cash, self).__str__(self) + s = super().__str__(self) return '%s %s' % (s, self.currency) @@ -15,7 +15,7 @@ class CashField(models.DecimalField): def __init__(self, **kwargs): kwargs['max_digits'] = 20 kwargs['decimal_places'] = 2 - super(CashField, self).__init__(**kwargs) + super().__init__(**kwargs) def from_db_value(self, value, expression, connection, context): cash = Cash(value) |