You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With use_query, this fails because it attempts to fetch compiled_set, I believe, due to this line in utils:
prefetch_fields.append(f"{field.name}_set")
Maybe it should be
prefetch_fields.append(field.related_name or f"{field.name}_set")
The text was updated successfully, but these errors were encountered:
Archmonger
changed the title
use_query doesn't work with modified related_nameuse_query doesn't work with fields using modified related_nameJan 13, 2023
Discussed in #121
Originally posted by numpde January 13, 2023
I have a model Compiled with a foreign key to Module, declared as follows:
With
use_query
, this fails because it attempts to fetchcompiled_set
, I believe, due to this line in utils:Maybe it should be
The text was updated successfully, but these errors were encountered: