Skip to content

Conversation

@berinhard
Copy link
Member

Closes #543

Describe the change
This PR updates how model-bakery selects which model to use to configure a ContentType of a model's generic relation. The current behavior delegates the control to model itself, since it's updated to respect whatever is defined as their GenericForeignKey.for_concrete_model specifies.

PR Checklist

  • Change is covered with tests
  • CHANGELOG.md is updated if needed

@berinhard berinhard requested a review from amureki October 27, 2025 11:12
@berinhard
Copy link
Member Author

Wow, this new matrix schema is amazing!

Copy link
Member

@amureki amureki left a comment

Choose a reason for hiding this comment

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

The change makes sense to me. Thanks for adding the tests too! 🙌

I added minor comments.

@berinhard berinhard self-assigned this Oct 28, 2025
@berinhard berinhard merged commit 621cbc9 into main Oct 31, 2025
151 of 152 checks passed
@berinhard berinhard deleted the issue/543 branch October 31, 2025 15:36
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.

Properly handle GFK creation for proxy models

3 participants