Migration to django 1.11

This commit is contained in:
2018-04-19 01:13:05 +02:00
parent 39119f586a
commit 08de5dfe6a
4 changed files with 4 additions and 6 deletions

View File

@ -41,8 +41,6 @@ class CurrencyField(models.DecimalField):
"""
This is a custom database field used for currency
"""
__metaclass__ = models.SubfieldBase
def __init__(self, *args, **kwargs):
kwargs['max_digits'] = 12
kwargs['decimal_places'] = 2