Model field reference¶
Note
All fields registered with south (if used by your project).
Field types¶
ColorField
¶
-
class
ColorField
([allow_alpha=False, max_length=40, **options])¶ A
CharField
that checks that the value is a valid CSS color value.allow_alpha
controls if colors can support alpha values.
MoneyField
¶
-
class
MoneyField
([max_digits=40, decimal_places=4, **options])¶ A
DecimalField
that sets up sensible defaults for monetary values, in addition theMoneyField
will return values as instances of theMoney
type. TheMoney
type is based on Pythons decimal object.
Note
The current implementation does not store the currency code with the money value.
PercentField
¶
-
class
PercentField
(**options)¶ A
FloatField
that represents a percentage value. Validates provided value to ensure it is within the range 0 to 100.
LatitudeField
¶
-
class
LatitudeField
(**options)¶ A
FloatField
that represents a latitude. Validates provided value to ensure it is within the range -90.0 to 90.0