Source

gnocchi-ask / gnocchi / ask / forms.py

The default branch has multiple heads

from django import forms
from gnocchi.ask import models

class AskQuestionForm(forms.ModelForm):

    class Meta:
        model = models.Question
        exclude = ('user', 'created', 'accepted', 'visible',)

class AddResponseForm(forms.ModelForm):

    class Meta:
        model = models.Response
        fields = ('content',)