Skip to content

Allow complex lookups for User #326

Open
@paulhfischer

Description

@paulhfischer

I was wondering if you would be open for a possibility to allow complex lookups for the user model.
My proposal would be to allow another setting (e.g. CUSTOM_LOOKUP which is passed to get_or_create_user and would replace user_lookup_key and user_lookup_value if set.

My use case is that i have an ID field which isn't necessary defined and i want to provide a "fallback" field by using a query like Q(my_id="uid") | Q(email)="mail".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions