~gmb/frabjous/comments-diagnosis

« back to all changes in this revision

Viewing changes to frabjous/comments/forms.py

  • Committer: Graham Binns
  • Date: 2010-02-23 23:49:38 UTC
  • Revision ID: graham@canonical.com-20100223234938-om2d8nl27fij78ux
Added ModerateCommentForm.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
from django import forms
20
20
 
21
 
from frabjous.comments.models import Comment
22
 
 
23
21
 
24
22
def build_comment_form(request):
25
23
    """Build a comment form for the current request."""
54
52
    title = forms.CharField(label="Subject", required=False)
55
53
    in_reply_to = forms.IntegerField(required=False)
56
54
 
 
55
 
 
56
class ModerateCommentForm(forms.Form):
 
57
    """A form for moderating comments."""
 
58
 
 
59
    comment_id = forms.IntegerField()