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

fix: foreign key nullable and custom resolver #1446

Conversation

superlevure
Copy link
Collaborator

@superlevure superlevure commented Aug 9, 2023

Fix model.DoesNotExist exception when trying to resolve a null one-to-one relationship with a custom get_queryset implemented on the DjangoObjectType (see test)

@superlevure superlevure marked this pull request as ready for review August 9, 2023 13:40
@superlevure superlevure force-pushed the fix/foreign-key-nullable-custom-resolver branch from d7f5ef4 to e9bc96a Compare August 9, 2023 13:40
Copy link
Collaborator

@tcleonard tcleonard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@superlevure superlevure self-assigned this Aug 9, 2023
@firaskafri firaskafri self-requested a review August 9, 2023 16:35
@superlevure
Copy link
Collaborator Author

Thank you for your review @firaskafri, it seems that both @tcleonard and I lost our merge permissions, would you be able to do it?

@firaskafri
Copy link
Collaborator

Thank you for your review @firaskafri, it seems that both @tcleonard and I lost our merge permissions, would you be able to do it?

Sure! I just checked and I believe you and @tcleonard still have the write permissions though.

@firaskafri firaskafri merged commit db34d2e into graphql-python:main Aug 9, 2023
12 checks passed
@superlevure superlevure deleted the fix/foreign-key-nullable-custom-resolver branch August 10, 2023 09:35
superlevure added a commit to loft-orbital/graphene-django that referenced this pull request Aug 10, 2023
* fix: nullable one to one relation

* fix: makefile
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.

None yet

3 participants