aboutsummaryrefslogtreecommitdiff
path: root/app/forms.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2020-06-25 00:03:26 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2020-06-25 00:03:26 +0530
commitc0327107a57a43cd8194165fc997146370ce526a (patch)
tree06b96cd7741e86ba083fa4549db2d637c8dbc21c /app/forms.py
parente52c18a09cabd374093b06ef0f521767cd228ba6 (diff)
Added email field in form
Diffstat (limited to 'app/forms.py')
-rw-r--r--app/forms.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/forms.py b/app/forms.py
index 5d64507..e0f7bc1 100644
--- a/app/forms.py
+++ b/app/forms.py
@@ -27,4 +27,6 @@ class curieForm(FlaskForm):
center_x = DecimalField('Center X',default=0)
center_y = DecimalField('Center Y',default=0)
- center_z = DecimalField('Center Z',default=0) \ No newline at end of file
+ center_z = DecimalField('Center Z',default=0)
+
+ email = StringField('Email', validators=[DataRequired(), Email()]) \ No newline at end of file