📜 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_list_item_display,get_relation_display,get_tenants,get_thumbnail,get_media_serializer_fieldsandcrop_image; - every setting in
CONTENT_STUDIO; - the system check IDs, but not their messages;
content_studio.urlsand thecontent_studio.contrib.password_resetapp, as a whole.
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.
ActivityLogButtonLinkComponentFieldFieldLayoutFormSetFormSetGroupLinkTableColumn
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 and embedded pages.
IFramePageMainMenuLink
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.
BaseWidgetCheckboxWidgetDateTimeWidgetDateWidgetForeignKeyWidgetInputWidgetJSONSchemaWidgetJSONWidgetManyMediaWidgetManyToManyWidgetMediaWidgetMultiSelectWidgetRadioButtonWidgetRichTextWidgetSelectWidgetSlugWidgetSwitchWidgetTagWidgetTextAreaWidgetTimeWidgetToggleGroupWidgetURLPathWidget
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.
BaseFormatBooleanFormatDateFormatDateTimeFormatFileSizeFormatForeignKeyFormatHtmlFormatJSONFormatManyMediaFormatMediaFormatNumberFormatTagFormatTextFormatTimeFormat
content_studio.fields
Optional content fields.
FlexFieldHTMLFieldHashTagFieldMultipleChoiceFieldTagFieldURLPathField
content_studio.models
Optional abstract base models.
ContentModelEditorModelManualOrderModelSingletonModelSoftDeletableContentModelSoftDeletableModelTimeStampedModelUUIDModel
content_studio.managers
Managers of the base models.
SingletonManagerSoftDeletableManagerSoftDeletableQuerySet
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