Yes, It helped, thank you. If you're on Stackowerflow you can answer this 
question:this question 
<http://stackoverflow.com/questions/37200489/working-with-hstorefield-in-django-tests>
.

понедельник, 16 мая 2016 г., 9:22:50 UTC+8 пользователь Simon Charette 
написал:
>
> Hi Denis,
>
> From the exception it looks like the issue is not related to a missing 
> extension
> but from an attempt of using and integer as a key. e.g.
>
> instance.hstore_field = {1: 'foo'}
>
> instead of 
>
> instance.hstore_field = {'1': 'foo'}
>
> Cheers,
> Simon
>
> Le dimanche 15 mai 2016 21:11:33 UTC-4, Denis Boyarkin a écrit :
>>
>> I'm using HstoreField in one of my models and when I try to test it I got 
>> an error psycopg2.ProgrammingError: ERROR: function hstore(integer[], 
>> text[]) does not exist. If I understand this problem correctly it 
>> happend because hstore extension wasn't setup in database as it was did in 
>> migrations by adding HStoreExtension operation (documentation 
>> <https://docs.djangoproject.com/en/1.9/ref/contrib/postgres/fields/#hstorefield>
>> ).
>>
>> How to setup hstore extension in default test database and solve my 
>> problem?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e21b1355-3829-4b6a-94ac-a0901a2d6562%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to