Skip to content
This repository was archived by the owner on Jul 26, 2024. It is now read-only.
This repository was archived by the owner on Jul 26, 2024. It is now read-only.

Does not support custom User model permissions #5

@jhnbkr

Description

@jhnbkr

I implemented django-clearcache into our project and came across an issue where it expected our User model to have the attribute is_superuser.

We have a custom User model and permissions setup that does not implement this attribute.
My bandaid was to implement a property for is_superuser that proxies our internal permissions validation check.

One solution could be to add a setting that defines the target User attribute name which defaults to is_superuser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions