django-virtual-models
django-virtual-models copied to clipboard
Improve performance and maintainability with a prefetching layer in your Django project
To support return types in `get_prefetch_queryset` without mypy complaints.
Hello! Sometimes, I need to make more complex queries that involve values that are not available in the current object of virtual model and I could pass them using serializer...
Automatically prefetch based on FilterSet, include ordering.
Check `LookupFinder._maybe_handle_field_with_nested_source`
Check `test_annotated_blocks_queries_on_serializer_evaluation`
- Check case of empty lookup list and `deferred_fields` - Check `deferred_fields` require prefetch hint - Check `deferred_fields` automatically included if used as a field in the serializer