Forms¶
Form classes for story creation and editing.
Admin Forms¶
PostForm¶
PostContentForm¶
CategoryForm¶
Wizard Forms¶
PostWizardForm¶
- class PostWizardForm(*args, **kwargs)[source]¶
Bases:
ModelFormForm for the post wizard. It is used to create a new post with the required fields.
- default_appconfig = None¶
- 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.
- 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.