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

Added custom textarea css.

parent fe884280
from website.models import Question, Comment, Reply
from django.db import models
from django.forms import ModelForm
from django.forms import ModelForm, Textarea
class QuestionForm( ModelForm ):
class Meta:
......@@ -9,6 +9,9 @@ class QuestionForm( ModelForm ):
fields = ('text',)
exclude = ('user','date','rating')
localized_fields = ('date',)
widgets = {
'text':Textarea(attrs={'class': 'form-control',}),
class CommentForm( ModelForm ):
class Meta:
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