Changes between Initial Version and Version 1 of Ticket #25396, comment 8


Ignore:
Timestamp:
Sep 14, 2015, 2:06:15 PM (9 years ago)
Author:
Piotr Roszatycki

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25396, comment 8

    initial v1  
    11I'm not sure what do you mean "different API".
    22
    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')).
     3I've refactored this example use case and created "database view" with `model.Manager`. The fields are aliased with `annotate(aliased_field=F('original_field'))`.
    44
    55This solution works also with django-import-export, so I can generate CSV or XLS file based on this aggregated `QuerySet`!
Back to Top