We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4011413 commit 0855863Copy full SHA for 0855863
django_declarative_apis/machinery/filtering.py
@@ -92,7 +92,7 @@ def _cache_related_instance(inst, field_name, model_cache):
92
else:
93
logger.debug("ev=model_cache, status=miss, key=%s", cache_key)
94
related_instance = getattr(inst, field_name)
95
- if not isinstance(related_instance, models.Model):
+ if not isinstance(related_instance, val_cls):
96
return
97
model_cache[cache_key] = related_instance
98
setattr(inst, field_name, related_instance)
0 commit comments