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

Added QuestionForm for creating questions.

parent 14bfa849
from website.models import Question, Comment, Reply
from django.db import models
from django.forms import ModelForm
class QuestionForm( ModelForm ):
class Meta:
model = Question
fields = ('text',)
exclude = ('user','date','rating')
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