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: make sure custom fields are kept during inheritance #415

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

bellini666
Copy link
Member

When a type is using a custom field, inheriting from it should not change that field back to a StrawberryDjangoField

Fix #414

When a type is using a custom field, inheriting from it should not
change that field back to a `StrawberryDjangoField`

Fix #414
@bellini666 bellini666 self-assigned this Nov 12, 2023
@bellini666 bellini666 requested a review from patrick91 November 12, 2023 14:42
@bellini666 bellini666 enabled auto-merge (squash) November 12, 2023 14:42
@codecov-commenter
Copy link

codecov-commenter commented Nov 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d0a32e4) 87.07% compared to head (98fa3df) 87.13%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #415      +/-   ##
==========================================
+ Coverage   87.07%   87.13%   +0.06%     
==========================================
  Files          36       36              
  Lines        3094     3101       +7     
==========================================
+ Hits         2694     2702       +8     
+ Misses        400      399       -1     
Files Coverage Δ
strawberry_django/fields/field.py 97.07% <100.00%> (+0.08%) ⬆️
strawberry_django/type.py 93.96% <100.00%> (+0.06%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bellini666 bellini666 merged commit fb19948 into main Nov 13, 2023
45 checks passed
@bellini666 bellini666 deleted the fix_custom_field_inheritance branch November 13, 2023 11:59
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.

Issue with custom field class and type inheritance
3 participants