[Answered ]-How to create custom permissions for django admin site

1👍

Everything happens in the Django Meta class. Just follow what the Django Documantation says:

class Meta:
        permissions = [
            ("change_task_status", "Can change the status of tasks"),
            ("close_task", "Can remove a task by setting its status as closed"),
        ]

If you want to manipulate the default permission, you follow these documentation explanation an add this to you model.

Leave a comment