Skip to content

Switching from username to users id #280

Open
@markwingerd

Description

@markwingerd

Is there a way to use a user's id instead of their username?

In my django project I have a few views which receive a user_id but have no use for any other part of the User object. These views need to be very fast and retrieving the User object just to get the username isn't ideal. I was wondering if it's possible in the current implementation or if an improvement could be made to get this functionality.

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