renamed NumericField to IntegerField
This commit is contained in:
parent
a3f89e3790
commit
ea492c2f56
2 changed files with 12 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue