parent
f432ffc70b
commit
38068e1ebb
@ -0,0 +1,7 @@
|
||||
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)
|
Loading…
Reference in new issue