model-bakers / model_bakery

Object factory for Django
https://model-bakery.readthedocs.io/en/latest/
Other
846 stars 85 forks source link

Fix #488 -- Align GFK and content type fields #494

Closed amureki closed 3 months ago

amureki commented 3 months ago

Describe the change Replace a hacky workaround from https://github.com/model-bakers/model_bakery/commit/0b4cfa7fe804bd74836aa3dff8141fbe24da500f#diff-7aca726c4b3af089805b51a56736cde676621ea8b404f024d8e51d879677ee09R17 with proper GFK field handling. So now, the content type and object id should be filled from the provided content object.

PR Checklist