Changes between Initial Version and Version 1 of Ticket #25396, comment 8
- Timestamp:
- Sep 14, 2015, 2:06:15 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25396, comment 8
initial v1 1 1 I'm not sure what do you mean "different API". 2 2 3 I've refactored this example use case and created "database view" with `model.Manager`. The fields are aliased with `annotate(aliased_field=F('original_field')) .3 I've refactored this example use case and created "database view" with `model.Manager`. The fields are aliased with `annotate(aliased_field=F('original_field'))`. 4 4 5 5 This solution works also with django-import-export, so I can generate CSV or XLS file based on this aggregated `QuerySet`!