Есть модель с полем HStoreField.
class M(Model): hstore = HStoreField(default={})
M.objects.filter(hstore__any_key__isnull=True)
M.objects.exclude(hstore__has_key='any_key')
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
WHERE "app_m"."hstore" -> 'any_key' IS NULL
WHERE ("app_m"."hstore" -> 'any_key') IS NULL
Я так понимаю это баг?
p.s django 1.8, hstore из contrib.postgresql