Skip to content

Instantly share code, notes, and snippets.

@fitoria
Forked from anonymous/gist:1309702
Created October 24, 2011 18:20
Show Gist options
  • Save fitoria/1309705 to your computer and use it in GitHub Desktop.
Save fitoria/1309705 to your computer and use it in GitHub Desktop.
cantidad_actores = Familia.objects.filter(municipio__departamento__id = id).count() + \
Cooperativa.objects.filter(municipio__departamento__id = id).count() + \
Centrales.objects.filter(municipio__departamento__id = id).count()+ \
AsistenciaTecnica.objects.filter(municipio__departamento__id = id).count()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment