You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
833 B
27 lines
833 B
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')
|
|
|
|
|