forms.py 324 B

123456789101112
  1. from django import forms
  2. from newsroom.models import Story
  3. # from tinymce.widgets import TinyMCE
  4. class StoryForm(forms.ModelForm):
  5. # body=forms.CharField(widget=TinyMCE(attrs={'cols': 40, 'rows': 40}))
  6. # summary=forms.CharField(widget=TinyMCE(attrs={'cols':50, 'rows': 6}))
  7. class Meta:
  8. model = Story