-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
GenericForeignKey, Django 5.1 getting incorrect object_id and content_type #488
Comments
+1 experiencing issues of a similar nature as well |
Hey there, thank you for the bug report! So we'd need to find a way to either treat them together, or to pass the context to the generators. |
+1 experiencing issues of a similar nature as well Failing versions
Working versions
|
Greetings everyone! Thank you for the reports! |
Describe the issue
#483 was a step to improved GFK support in bakery - thank you!
I'm seeing an issue with GFK support in current model-bakery, where a random
object_id
andcontent_type
is associated with a random other object rather than the one specified bycontent_object
in thebaker.make(...)
call.To Reproduce
obj_from_db.object_id
andnew_obj.object_id
are different; same withcontent_type
.Expected behavior
From the example above:
obj_from_db.object_id
andnew_obj.object_id
should be identical; same withcontent_type
.Our tests appear to run correctly (with this result) in Django 4.2 with model-bakery 1.18.2.
Versions
The text was updated successfully, but these errors were encountered: