ubottu-web/ubottu/factoids/forms.py

9 lines
257 B
Python
Raw Normal View History

2024-03-25 09:42:15 +00:00
from django.forms import ModelForm, Textarea
from .models import Fact
class FactForm(ModelForm):
class Meta:
model = Fact
fields = '__all__'
widgets = {
'value': Textarea(attrs={'cols': 60, 'rows': 10}),
}