I hereby claim:
- I am martsberger on github.
- I am bmartsberger (https://keybase.io/bmartsberger) on keybase.
- I have a public key ASBMCwyy1IBaWXBKAEnUOPPwIwUrk2dzsvYhQRkjOna_2wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# You can put the EqualsAny class in a utility file somewhere, It's necessary | |
# in order to compare the result of ArrayAgg with a column | |
from django.db.models import Field | |
@Field.register_lookup | |
class EqualsAny(Lookup): | |
""" | |
Adds the `__any` lookup for generating SQL like: | |
Parent.objects.annotate(child_count=Count('child')) |