Commit e6e1bfcf authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Added Comment and Reply forms.

parent 615f2f16
......@@ -9,3 +9,17 @@ class QuestionForm( ModelForm ):
fields = ('text',)
exclude = ('user','date','rating')
localized_fields = ('date',)
class CommentForm( ModelForm ):
class Meta:
model = Comment
fields = ('text',)
exclude = ('user','date','parent')
localized_fields = ('date',)
class ReplyForm( ModelForm ):
class Meta:
model = Reply
fields = ('text',)
exclude = ('user','date','parent')
localized_fields = ('date',)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment