jordanm/django-hstore — Issue #7: Filtering by a tag not working?
Author: freyley
Created: 2012-01-06 17:46:57+00:00
State: open

I created a Way model, like this:

from django_hstore import hstore

class Way(models.Model):
tags = hstore.DictionaryField(db_index=True, null=True)

and then did this

way = Way.objects.all()[1]

print way.tags

Out[8]:
{'name': 'Northeast Butler Street',

}

then did this:

print Way.objects.filter(tags__icontains={'name' : way.tags['name']})

and got nothing

Out[12]: []

Am I using the filter wrong?