Questions tagged [django-hstore]

Django-hstore is a niche library which integrates the hstore extension of PostgreSQL into Django. HStore brings the power of schemaless databases into PostgreSQL, giving us the advantage of flexibility and performance without renouncing to the robustness of SQL databases.

Django-hstore is a niche library which integrates the hstore extension of PostgreSQL into Django.

HStore brings the power of schemaless databases into PostgreSQL, giving us the advantage of flexibility and performance without renouncing to the robustness of SQL databases.

Pypi: https://pypi.python.org/pypi/django-hstore/

Github: https://github.com/djangonauts/django-hstore

Mailing list: https://groups.google.com/forum/#!forum/django-hstore

19 questions
10
votes
2 answers

Pypi: can I claim to be the new maintainer of an unmaintained package?

I have done quite a lot of work on a python package named "django-hstore" recently (link to my repo: https://github.com/nemesisdesign/django-hstore), the latest version published on pypi has been released more than a year ago (link to pypi:…
nemesisdesign
  • 8,159
  • 12
  • 58
  • 97
3
votes
2 answers

Error using Django-Hstore for PostgreSQL HSTORE in Django

When I run my Django Server, I got this error: class HStoreDescriptor(models.fields.subclassing.Creator): AttributeError: 'module' object has no attribute 'subclassing' I am using, the currently newest, Django 1.10, and django-hstore 1.4.2
Aminah Nuraini
  • 18,120
  • 8
  • 90
  • 108
3
votes
1 answer

How to use Django HStore DictionaryField in schema and schemaless mode at the same time?

When I use hstore.DictionaryField() in Django model passing no parameters and register my model in Djano admin I can create new key-value rows in admin interface on a fly. When I use the same field in schema mode hstore.DictionaryField(schema=['some…
Sashko Lykhenko
  • 1,554
  • 4
  • 20
  • 36
3
votes
1 answer

How do we query nested dictionary in django-hstore?

I have this stored in my serializedDictionaryField: data = { 'k1': 'v1', 'k2': 'v2', 'k3': {'nested_k': 'nested_v'} } Is it possible to filter by values of nested dictionary? something…
waynetan413
  • 350
  • 1
  • 2
  • 10
3
votes
0 answers

HStoreField() query in Django for finding and Count values in HstoreField

I'm working on HStoreField in Django. I can able to store the data in HstoreField(). but i dont know how to retrive data from hstore filed models.py class myhstore(models.Model): file_name= models.CharField(max_length = 20) content =…
Arjun
  • 31
  • 6
2
votes
1 answer

How can I update a specific key on a HStoreField in django?

I have a Django model with a HStoreField and I'm trying to update a specific key on the data in this field. I'm trying not to load the model into memory as there's a fair bit of data and it would be for a lot of object instances. I have my Result…
gareth71
  • 23
  • 6
2
votes
2 answers

django.db.utils.ProgrammingError: can't adapt type 'dict' after I tried to add a Hstorefield to my model

I am developing an app in Django. I tried to add a Hstorefield to my model, then I deleted it, and now I cannot anymore run the command manage.py makemigrations because I always get this error (met5) C:\Users\Tommaso\Django rest framework\Udemy…
Tms91
  • 3,456
  • 6
  • 40
  • 74
2
votes
1 answer

django-hstore DictionaryField returns string rather than a dictionary

I am running through a little strange behaviour on my test cases with django-hstore. I am working on a django rest framework project and models may look like below models from django_hstore.hstore import DictionaryField class…
2
votes
1 answer

HStore field insert issue

I am trying to insert a dictionary into the htore from my python shell and I keep getting this error: django.db.utils.ProgrammingError: function hstore(text[], integer[]) does not exist LINE 1: ...ula" = hstore(ARRAY['function', 'formula'],…
Sourabh Dev
  • 743
  • 11
  • 22
1
vote
1 answer

Django-hstore and admin widget: way to unsort hstore data

I'm use Django-hstore library, and there is pretty admin widget. The subject table store computer's components, something like this: class Component(models.Model): name = models.CharField(max_length=64) purchase_date =…
swasher
  • 368
  • 4
  • 17
1
vote
1 answer

how to exclude django hstore field in admin?

The standard approach in admin.py by defining class: exclude = ('some_hstore_field', ) does not work. I manage to get expected result by specifying explicit fields but would like rather exclude the one I don't need, than specify all the other…
andilabs
  • 22,159
  • 14
  • 114
  • 151
1
vote
0 answers

Django order_by hstore DictionaryField key

I would like to order a queryset based on a key in a DictionaryField I have using hstore. I currently have the following: objects = MyModel.objects.filter(**items).filter( is_private=False).order_by('dict_field') the contents of the…
Ruben Quinones
  • 2,442
  • 8
  • 26
  • 30
1
vote
1 answer

django-hstore compatibility issue with Django 1.6

django-hstore seems to be not compatible with Django 1.6. I have this error on runserver. With Django 1.5.5 everything was correct. Any idea what could be the problem? Note that I have changed the simplejson import by import json as mentionned in…
Below the Radar
  • 7,321
  • 11
  • 63
  • 142
0
votes
0 answers

Facing issue with django_admin_hstore_widget in production

Uncaught ReferenceError: initDjangoHStoreWidget is not defined at HTMLDocument. ((index):3024:36) at j (jquery.min.js:2:26911) at Object.fireWith [as resolveWith] (jquery.min.js:2:27724) at Function.ready…
0
votes
1 answer

Implementing PostgreSQL HStore in Django

I found some couple of packages to implement PostgreSQL HStore in Django from djangopackages.org. The most stared and most forked package was last updated in March 2, 2017 [DJANGO-HSTORE]. I think it is not maintained regularly. But as it at the top…
1
2