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.
32 lines
874 B
32 lines
874 B
from django.forms.models import ModelForm
|
|
from .models import IndexBlockPlugin, ExtendedTextBlockPlugin, ExtendedBlockPlugin, DescTextBlockPlugin
|
|
from django import forms
|
|
|
|
|
|
class IndexBlockForm(ModelForm):
|
|
|
|
class Meta:
|
|
model = IndexBlockPlugin
|
|
exclude = ('page', 'position', 'placeholder', 'language', 'plugin_type')
|
|
|
|
|
|
class ExtendedTextBlockForm(ModelForm):
|
|
|
|
class Meta:
|
|
model = ExtendedTextBlockPlugin
|
|
exclude = ('page', 'position', 'placeholder', 'language', 'plugin_type')
|
|
|
|
|
|
class ExtendedBlockForm(ModelForm):
|
|
|
|
class Meta:
|
|
model = ExtendedBlockPlugin
|
|
exclude = ('page', 'position', 'placeholder', 'language', 'plugin_type')
|
|
|
|
|
|
class DescBlockForm(ModelForm):
|
|
|
|
class Meta:
|
|
model = ExtendedBlockPlugin
|
|
exclude = ('page', 'position', 'placeholder', 'language', 'plugin_type')
|
|
|
|
|