Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow complex lookups for User #326

Open
paulhfischer opened this issue Mar 18, 2022 · 1 comment
Open

Allow complex lookups for User #326

paulhfischer opened this issue Mar 18, 2022 · 1 comment

Comments

@paulhfischer
Copy link

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".

@peppelinux
Copy link
Member

I'd consider only to move this

user_query_args = {

in a method, like "get_user_query_args" and let developers inherits this and do their own

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

No branches or pull requests

2 participants