# -*- coding: utf-8 -*-
""" A CurrencyField is simply a subclass of DecimalField with a fixed format: max_digits = 12, decimal_places=2, and defaults to 0.00 """
def south_field_triple(self): # pragma: no cover """ Returns a suitable description of this field for South. This is excluded from coverage reports since it is pretty much a piece of South itself, and does not influence program behavior at all in case we don't use South. """ # We'll just introspect the _actual_ field. from south.modelsinspector import introspector field_class = "django.db.models.fields.DecimalField" args, kwargs = introspector(self) # That's our definition! return (field_class, args, kwargs) |