Skip to content

✔️ Stale Permission Clean-up #1087

@jon-nfc

Description

@jon-nfc

Within Django if a permission is removed, it is not cleaned from the db. this includes from management command remove_stale_contenttypes

Details

Add a signal that runs on migration, that removes permissions that are no longer defined within the model.

Tasks

  • create signal to run post_migrate

Requirements

  • Does not touch django default perms add, change, delete and view

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions