Hi, Integers (and strings that can be cast to integers) on the first-level are always interpreted as index transforms in arrays (as documented <https://docs.djangoproject.com/en/dev/topics/db/queries/#key-index-and-path-transforms>) because you can store a JSON array in the JSONField. Unfortunately, you have to use a custom database function or RawSQL() to get this data. Please also take into account that KeyTransform() is an undocumented transformation (ticket #26511 <https://code.djangoproject.com/ticket/26511>).
Best, Mariusz -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/3cd83f63-c0d9-4559-8bf6-aa6c5ba03b7fn%40googlegroups.com.