Implement the rest of the request form

This commit is contained in:
richard-dds
2018-06-19 15:44:51 -04:00
parent 1d2f481165
commit 819ce48e41
2 changed files with 18 additions and 16 deletions

View File

@@ -31,6 +31,12 @@ class RequestForm(Form):
('both', 'Both') ])
number_of_cores = IntegerField('Number of cores', validators=[Required()])
total_ram = IntegerField('Total RAM', validators=[Required()])
object_storage = IntegerField('Total object storage', validators=[Required()])
server_storage = IntegerField('Total server storage', validators=[Required()])
total_active_users = IntegerField('Total active users', validators=[Required()])
total_peak_users = IntegerField('Total peak users', validators=[Required()])
total_requests = IntegerField('Total requests', validators=[Required()])
total_environments = IntegerField('Total environments', validators=[Required()])
# this is just an example validation; obviously this is wrong.
def validate_total_ram(self,field):