Added comments

This commit is contained in:
Sn0wCrack
2017-05-13 22:24:42 +10:00
committed by nyaadev
parent 1e230584ab
commit 6d608ab2f4
4 changed files with 108 additions and 1 deletions

View File

@@ -126,6 +126,13 @@ class DisabledSelectField(SelectField):
raise ValueError(self.gettext('Not a valid choice'))
class CommentForm(FlaskForm):
comment = TextAreaField('Make a comment', [
Length(max=255, message='Comment must be at most %(max)d characters long.'),
Required()
])
class EditForm(FlaskForm):
display_name = StringField('Torrent display name', [
Length(min=3, max=255,