from django.forms.models import ModelForm from .models import IndexBlockPlugin, ExtendedBlockPlugin from django import forms class IndexBlockForm(ModelForm): #description = forms.CharField() class Meta: model = IndexBlockPlugin # widgets = { # 'description': TinyMCE(attrs={'cols': 80, 'rows': 10}), # } exclude = ('page', 'position', 'placeholder', 'language', 'plugin_type') class ExtendedBlockForm(ModelForm): #description = forms.CharField() class Meta: model = ExtendedBlockPlugin # widgets = { # 'description': TinyMCE(attrs={'cols': 80, 'rows': 10}), # 'extended_description': TinyMCE(attrs={'cols': 80, 'rows': 10}), # } exclude = ('page', 'position', 'placeholder', 'language', 'plugin_type')