This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
|
|
|
from django import forms
|
|
from django.forms.models import ModelForm
|
|
from .models import Text
|
|
|
|
|
|
class TextForm(ModelForm):
|
|
body = forms.CharField()
|
|
|
|
class Meta:
|
|
model = Text
|
|
exclude = (
|
|
'page',
|
|
'position',
|
|
'placeholder',
|
|
'language',
|
|
'plugin_type',
|
|
)
|