Skip to content
This repository was archived by the owner on Dec 6, 2021. It is now read-only.
This repository was archived by the owner on Dec 6, 2021. It is now read-only.

Support display names for roles #1

Description

@j4mie

For displaying roles to users of the application. Example:

You have received a new message from {{ user.get_profile.full_name }}. This user is an {{ user.role.display_name }}.

(display_name might not be the best naming..)

Should work just like model choices. User role names can (optionally) be tuples:

USER_ROLES = (
    'manager',
    'moderator',
    'client',
    ('admin', 'administrator'),
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions