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

(Improvement) Support assigning relations via custom lookup fields #105

Merged
merged 1 commit into from
Aug 25, 2022

Conversation

stevelacey
Copy link
Contributor

@stevelacey stevelacey commented Aug 25, 2022

Allows models to specify a custom lookup field to use when assigning relations:

class User(Model):
    class Api:
        lookup_field = "profile__uuid"

@stevelacey stevelacey force-pushed the improvement/support-custom-lookup-fields branch from 8682852 to 50ea78f Compare August 25, 2022 15:26
@stevelacey stevelacey merged commit af7566c into master Aug 25, 2022
@stevelacey stevelacey deleted the improvement/support-custom-lookup-fields branch August 25, 2022 15:34
This was referenced Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant