mirror of
https://github.com/simon987/nyaa.git
synced 2025-12-16 00:09:05 +00:00
Make comments great again.
This commit is contained in:
@@ -128,18 +128,16 @@ class DisabledSelectField(SelectField):
|
||||
|
||||
class CommentForm(FlaskForm):
|
||||
comment = TextAreaField('Make a comment', [
|
||||
Length(max=255, message='Comment must be at most %(max)d characters long.'),
|
||||
Length(min=3, max=255, message='Comment must be at least %(min)d characters '
|
||||
'long and %(max)d at most.'),
|
||||
DataRequired()
|
||||
])
|
||||
|
||||
is_anonymous = BooleanField('Anonymous')
|
||||
|
||||
|
||||
class EditForm(FlaskForm):
|
||||
display_name = StringField('Torrent display name', [
|
||||
Length(min=3, max=255,
|
||||
message='Torrent display name must be at least %(min)d characters long '
|
||||
'and %(max)d at most.')
|
||||
Length(min=3, max=255, message='Torrent display name must be at least %(min)d characters '
|
||||
'long and %(max)d at most.')
|
||||
])
|
||||
|
||||
category = DisabledSelectField('Category')
|
||||
|
||||
Reference in New Issue
Block a user