aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/forms.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-05-07 08:02:51 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-05-07 08:02:51 +0200
commit2b63e2847b25a8bfe7c4dcf640f146ca43068823 (patch)
tree37bb5987a36054061915f7e82134832ba6427795 /pyaggr3g470r/forms.py
parentUpdated documentation. (diff)
downloadnewspipe-2b63e2847b25a8bfe7c4dcf640f146ca43068823.tar.gz
newspipe-2b63e2847b25a8bfe7c4dcf640f146ca43068823.tar.bz2
newspipe-2b63e2847b25a8bfe7c4dcf640f146ca43068823.zip
This field is mandatory.
Diffstat (limited to 'pyaggr3g470r/forms.py')
-rw-r--r--pyaggr3g470r/forms.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pyaggr3g470r/forms.py b/pyaggr3g470r/forms.py
index 080e9066..77799c4d 100644
--- a/pyaggr3g470r/forms.py
+++ b/pyaggr3g470r/forms.py
@@ -20,9 +20,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>
__author__ = "Cedric Bonhomme"
-__version__ = "$Revision: 0.2 $"
+__version__ = "$Revision: 0.3 $"
__date__ = "$Date: 2013/11/05 $"
-__revision__ = "$Date: 2013/13/05 $"
+__revision__ = "$Date: 2015/05/06 $"
__copyright__ = "Copyright (c) Cedric Bonhomme"
__license__ = "GPLv3"
@@ -144,7 +144,8 @@ class ProfileForm(Form):
class AddFeedForm(Form):
title = TextField(lazy_gettext("Title"), [validators.Optional()])
- link = TextField(lazy_gettext("Feed link"))
+ link = TextField(lazy_gettext("Feed link"),
+ [validators.Required(lazy_gettext("Please enter the URL."))])
site_link = TextField(lazy_gettext("Site link"), [validators.Optional()])
enabled = BooleanField(lazy_gettext("Check for updates"), default=True)
submit = SubmitField(lazy_gettext("Save"))
bgstack15