aboutsummaryrefslogtreecommitdiff
path: root/src/web/forms.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-07 07:37:19 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-07 07:37:19 +0200
commit675c893271e4fa1c49a4abf45ced1bb580c03540 (patch)
treed1cbf6f8e261b4767cddf49d96a6b9eb50892bab /src/web/forms.py
parentFetch feeds only if the user do not want to use its own crawler. (diff)
downloadnewspipe-675c893271e4fa1c49a4abf45ced1bb580c03540.tar.gz
newspipe-675c893271e4fa1c49a4abf45ced1bb580c03540.tar.bz2
newspipe-675c893271e4fa1c49a4abf45ced1bb580c03540.zip
An administrator is now able to set the value of 'auto_crawling' for a user.
Diffstat (limited to 'src/web/forms.py')
-rw-r--r--src/web/forms.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/web/forms.py b/src/web/forms.py
index 033ccbbe..d63394f7 100644
--- a/src/web/forms.py
+++ b/src/web/forms.py
@@ -133,6 +133,8 @@ class UserForm(Form):
[validators.Length(min=6, max=35),
validators.Required(lazy_gettext("Please enter your email."))])
password = PasswordField(lazy_gettext("Password"))
+ automatic_crawling = BooleanField(lazy_gettext("Automatic crawling"),
+ default=True)
submit = SubmitField(lazy_gettext("Save"))
def validate(self):
bgstack15