Skip to main content

revert_proxy_model_permissions

Update the content_type of proxy model permissions to use the ContentType of the concrete model.

def revert_proxy_model_permissions(
apps: django.apps.registry.Apps,
schema_editor: django.db.backends.base.schema.BaseDatabaseSchemaEditor
)

Update the content_type of proxy model permissions to use the ContentType of the concrete model.

Parameters

NameTypeDescription
appsdjango.apps.registry.AppsThe registry of installed applications and their models at the specific state of the migration.
schema_editordjango.db.backends.base.schema.BaseDatabaseSchemaEditorThe database abstraction layer used to apply schema and data changes.

Returns

TypeDescription
Nothing is returned; the function performs an in-place database migration.