You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
208 B
8 lines
208 B
13 years ago
|
from django.core.exceptions import ValidationError
|
||
|
from decimal import Decimal
|
||
|
|
||
|
|
||
|
def validate_notZero(value):
|
||
|
if value == Decimal("0.0") :
|
||
|
raise ValidationError(u'%s is not an real number\{0.00}' % value)
|