henriquebastos / django-aggregate-if

Conditional aggregates for Django queries, just like the famous SumIf and CountIf in Excel.
MIT License
138 stars 17 forks source link

promote_joins() erros #13

Closed muriloventuroso closed 10 years ago

muriloventuroso commented 10 years ago

Estava recebendo o seguinte erro ao executar uma queryset com annotate:

promote_joins() takes 2 positional arguments but 3 were given

Fiz uma edição na linha 126 do arquivo aggregate_if.py alterando de query.promote_joins(join_list, True) para query.promote_joins(join_list) e a execução funcionou perfeitamente. Estou usando Django 1.7

Fica a dica para verificar esse aspecto.

mbertheau commented 10 years ago

There's been no release with support for Django-1.7 yet. You can try to use the django-1.7 branch https://github.com/henriquebastos/django-aggregate-if/tree/django-1.7, which works for me.

mazing commented 10 years ago

Are there any plans on a release with support for Django 1.7?

henriquebastos commented 10 years ago

The branch django-1.7 is well evolved. There's 1 failing test blocking the new release.

I didn't had the time to investigate it any further. Any help is very welcome.

If you're on a hurry you can:

pip install git+https://github.com/henriquebastos/django-aggregate-if.git@django-1.7