sbevc
sbevc
I was able to prefetch related polymorphic child subclass using [Prefetch](https://docs.djangoproject.com/en/4.2/ref/models/querysets/#django.db.models.Prefetch) Given this relations: ```python #models.py class Respondent(PolymorphicModel): name = models.CharField() class ChildRespondent(Respondent): extra = models.CharField() class Answer(models.Model): respondent =...
Thanks for your answer! I agree with you that it is simple enough to wire those dependencies with a middleware for Django and a custom task for celery, but those...
Here is an example solution that would only attempt to resolve missing kwargs: ```python import functools import inspect import re from dependencies import Injector from dependencies.exceptions import DependencyError class MissingDependency(Exception):...