diff options
author | tilly-Q <nattilypigeonfowl@gmail.com> | 2013-07-29 15:14:39 -0400 |
---|---|---|
committer | tilly-Q <nattilypigeonfowl@gmail.com> | 2013-07-29 15:14:39 -0400 |
commit | f26c21cd5b7998c903fa67aaf164c07743fee651 (patch) | |
tree | cc1d073eee35ef991f072c20b50dae5ab4cf5299 /mediagoblin/user_pages/forms.py | |
parent | 3aa3871b909500ae9198d63814dd79fd28921f93 (diff) | |
download | mediagoblin-f26c21cd5b7998c903fa67aaf164c07743fee651.tar.lz mediagoblin-f26c21cd5b7998c903fa67aaf164c07743fee651.tar.xz mediagoblin-f26c21cd5b7998c903fa67aaf164c07743fee651.zip |
This is a very small commit. All that I have done here is to clean up my code
a bit. I made it so that mediagoblin.user_pages.report recieves the report
form as part of it's context. I also made sure I used {% trans %} tags effect-
-ively.
Diffstat (limited to 'mediagoblin/user_pages/forms.py')
-rw-r--r-- | mediagoblin/user_pages/forms.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mediagoblin/user_pages/forms.py b/mediagoblin/user_pages/forms.py index 260fe02b..d83338e9 100644 --- a/mediagoblin/user_pages/forms.py +++ b/mediagoblin/user_pages/forms.py @@ -54,12 +54,10 @@ class CommentReportForm(wtforms.Form): report_reason = wtforms.TextAreaField( _('Reason for Reporting'), [wtforms.validators.Required()]) - comment_id = wtforms.IntegerField() - reporter_id = wtforms.IntegerField() + reporter_id = wtforms.HiddenField('') class MediaReportForm(wtforms.Form): report_reason = wtforms.TextAreaField( _('Reason for Reporting'), [wtforms.validators.Required()]) - media_entry_id = wtforms.IntegerField() - reporter_id = wtforms.IntegerField() + reporter_id = wtforms.HiddenField('') |