📜 Public API
Content Studio follows semantic versioning for its public API: from version 1.0, the names on this page only change in a major release, after a deprecation period with a warning.
The public API consists of:
- the names below, imported from the module they are listed under;
- the documented attributes and methods of
ModelStudio,InlineModelStudioandContentStudioSite: the configuration options and the hooks, such as thehas_*_permissionmethods,get_fields,get_readonly_fields,get_prepopulated_fields,get_list_item_display,get_relation_display,get_created_result,get_duplicate_initial,get_tenants,get_thumbnail,get_media_serializer_fieldsandcrop_image; - the documented options and methods of blocks: the
Metaoptions ofBlock,get_contextandget_template_name, and the values of a block field (blocks, and each block'sid,type,valueandrender); - the
render_blockstag of thecontent_studiotemplate library; - every setting in
CONTENT_STUDIO; - the system check IDs, but not their messages;
content_studio.urlsand thecontent_studio.contrib.password_resetapp, as a whole;- the
content_studio.webhooksapp'scontent_studio_deliver_webhookscommand, and the requests its webhooks send: the payload with itsversion, and theX-Content-Studio-*headers.
Everything else may change in any release, including any name that is not on this page, even when you can import it.
content_studio
The registration decorator and the package version.
VERSIONregister
content_studio.admin
Studios, the site and their configuration objects. admin_site is the default site.
ContentStudioSiteInlineModelStudioListItemDisplayModelGroupModelStudioRelationDisplayadmin_siteregister
content_studio.form
Edit page layouts, components and table columns. Component is the base type of the built-in components; custom component types are not supported, but Link, ButtonLink and Button are meant to be subclassed.
ActivityLogButtonButtonLinkButtonResultComponentFieldFieldLayoutFormSetFormSetGroupLinkTableColumn
content_studio.actions
Custom bulk actions.
bulk_action
content_studio.dashboard
The dashboard and its layout widget. DashboardWidget is the base type of the built-in widgets.
DashboardDashboardWidgetSpacingWidget
content_studio.dashboard.*
The built-in dashboard widgets, each from its own module.
content_studio.dashboard.statistic.StatisticWidgetcontent_studio.dashboard.content_list.ContentListWidgetcontent_studio.dashboard.activity_log.ActivityLogWidgetcontent_studio.dashboard.scheduled_tasks.ScheduledTasksWidget
content_studio.extensions
Menu links, menu buttons and embedded pages.
IFramePageMainMenuButtonMainMenuLink
content_studio.widgets
The built-in editing widgets, to use in Field(widget=...) and default_widget_mapping. BaseWidget is their base type; custom widgets are not supported.
BaseWidgetBlockWidgetCheckboxWidgetDateTimeWidgetDateWidgetForeignKeyWidgetInputWidgetJSONSchemaWidgetJSONWidgetManyMediaWidgetManyToManyWidgetMediaWidgetMultiSelectWidgetRadioButtonWidgetRichTextWidgetSelectWidgetSlugWidgetSwitchWidgetTagWidgetTextAreaWidgetTimeWidgetToggleGroupWidgetURLPathWidget
content_studio.formats
The built-in display formats, to use in TableColumn(format=...) and default_format_mapping. BaseFormat is their base type; custom formats are not supported.
BaseFormatBlockFormatBooleanFormatDateFormatDateTimeFormatFileSizeFormatForeignKeyFormatHtmlFormatJSONFormatManyMediaFormatMediaFormatNumberFormatTagFormatTextFormatTimeFormat
content_studio.fields
Optional content fields.
FlexFieldHTMLFieldHashTagFieldMultipleChoiceFieldTagFieldURLPathField
content_studio.blocks
The block field: an ordered list of content blocks. Block is the base type of the blocks you define.
BlockBlockField
content_studio.models
Optional abstract base models.
ContentModelEditorModelManualOrderModelSingletonModelSoftDeletableContentModelSoftDeletableModelTimeStampedModelUUIDModel
content_studio.managers
Managers of the base models.
SingletonManagerSoftDeletableManagerSoftDeletableQuerySet
content_studio.signals
The signal sent after changes made in the admin are committed, the changes it carries, and the function that records a change.
Changecontent_changedrecord_change
content_studio.validators
Validators used by the content fields, usable on any field.
ChoiceOptionsValidatorJSONSchemaValidator
content_studio.sanitizers
The built-in HTML sanitizer, the default HTML_SANITIZER.
sanitize_html
content_studio.exceptions
Raised by registration.
AlreadyRegisteredNotRegistered
content_studio.media_library.fields
Media picker fields of the optional media library app.
CropFieldManyMediaFieldMediaField
content_studio.media_library.models
The media library app's concrete models.
FolderMedia
content_studio.webhooks.models
The webhooks app's models: the webhooks and their deliveries.
WebhookWebhookDelivery
content_studio.webhooks.dashboard
The webhooks app's dashboard widget.
WebhookDeliveriesWidget
content_studio.webhooks.extensions
The webhooks app's main menu button.
DeployButton