Commit graph

4 commits

Author SHA1 Message Date
utkarsh.arya@zomato.com
2dd64937f2 Fix prefetch_related for GFKs to UUID primary keys
Ensure GenericForeignKey works with UUID PKs by using to_python for type conversion.
Fixes issue where prefetch_related returned None for GFKs to UUID models.
References: justquick/django-activity-stream#245
2025-11-15 22:55:43 +00:00
Claude Paroz
d7b9aaa366 Refs #23919 -- Removed encoding preambles and future imports 2017-01-18 09:55:19 +01:00
Attila Tovt
5e2c4d7afb Fixed #26264 -- Fixed prefetch_related() crashes with values_list(flat=True) 2016-02-26 19:26:15 -05:00
Brian King
bfb5b7150f Fixed #24912 -- Fixed prefetch_related failure for UUIDField primary keys
This resolves a problem on databases besides PostgreSQL when using
prefetch_related with a source model that uses a UUID primary key.
2015-06-15 09:37:38 -04:00