Implemented report action

Actions: Close report, Hide torrent, Delete torrent
This commit is contained in:
nyaazi
2017-05-20 13:33:58 +03:00
parent e6083325d6
commit 354736720b
5 changed files with 265 additions and 194 deletions

View File

@@ -282,7 +282,8 @@ class ReportForm(FlaskForm):
reason = TextAreaField('Report reason', [
Length(min=3, max=255,
message='Report reason must be at least %(min)d characters long '
'and %(max)d at most.')
'and %(max)d at most.'),
DataRequired('You must provide a valid report reason.')
])