Fixed  #340
Added compatibility with django-hstore