renamed NumericField to IntegerField

This commit is contained in:
Binh 2011-11-05 14:12:47 -05:00
parent a3f89e3790
commit ea492c2f56
2 changed files with 12 additions and 12 deletions

View file

@ -93,9 +93,9 @@ class EmailField(TextField):
return super(EmailField, self).__init__(name=name, max_length=max_length,
required=required, uppercase=False)
class NumericField(TextField):
class IntegerField(TextField):
def validate(self):
super(NumericField, self).validate()
super(IntegerField, self).validate()
if self.value:
try:
int(self.value)