Forms

Form classes for story creation and editing.

Admin Forms

PostForm

PostContentForm

CategoryForm

Wizard Forms

PostWizardForm

class PostWizardForm(*args, **kwargs)[source]

Bases: ModelForm

Form for the post wizard. It is used to create a new post with the required fields.

default_appconfig = None
__init__(*args, **kwargs)[source]
class Meta[source]

Bases: object

model

alias of PostContent

fields = ['title', 'abstract', 'post_text']
save(commit=True)[source]

Save this form’s self.instance object if commit=True. Otherwise, add a save_m2m() method to the form which can be called after the instance is saved manually at a later time. Return the model instance.

create_slug()[source]

Generate a valid slug, in case the given one is taken

clean_app_config()[source]
add_plugin(text)[source]

Add text field content as text plugin to the post.

base_fields = {'abstract': <djangocms_text.fields.HTMLFormField object>, 'app_config': <django.forms.fields.IntegerField object>, 'post_text': <djangocms_text.fields.HTMLFormField object>, 'title': <django.forms.fields.CharField object>}
declared_fields = {'app_config': <django.forms.fields.IntegerField object>}
property media

Return all media required to render the widgets on this form.

Frontend Forms

CommentForm

SearchForm

Form Widgets

CategorySelectWidget

TagWidget