class CmsPageForm(forms.ModelForm): body = forms.CharField(widget = NicEditWidget(attrs = \ {'style': 'width: 800px;'})) cols = forms.ChoiceField(choices = ((6, '6'), (7, '7'), (8, '8'), \ (9, '9'), (10, '10'), (11, '11'), (12, '12'))) class Meta: model = Page exclude = ['created']
class AdminBodyForm(forms.ModelForm): body = forms.CharField(widget=NicEditWidget( attrs={'style': 'width: 800px;'}))
class Meta: model = Message widgets = { 'content': NicEditWidget(attrs={'style': 'width: 800px;'}), } fields = '__all__'