Skip to content

Instantly share code, notes, and snippets.

@johndiego
Created October 21, 2017 03:09
Show Gist options
  • Save johndiego/2aef165cebefaba063cf4515fbe448d1 to your computer and use it in GitHub Desktop.
Save johndiego/2aef165cebefaba063cf4515fbe448d1 to your computer and use it in GitHub Desktop.
OSServico.objects.values('os_clientes__nome','status_os','data_hora_acio','pk' ,'produto__nome_razao_social','area_servico__nome')\
.filter(status_os__in = FINANCEIRO_FILTROS).annotate(corp=Sum('os_clientes'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment