Well I’ve found this SO answer which I can try. I’m still a bit confused why what I’m doing won’t work, and if my example won’t work then what is the proper use case for __len on ArrayFields?
UPDATE: The strategy of using the Postgres CARDINALITY function does seem to work for me either. I get the error TypeError: 'int' object is not iterable.