Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 654 Bytes

File metadata and controls

35 lines (25 loc) · 654 Bytes

django-hstore-field

Drop-in HStore field with auto-wired widget for Django admin.

Pypi Badge

Installation

pip install django-hstore-field

Add both packages to INSTALLED_APPS:

INSTALLED_APPS = [
    ...,
    'django_hstore_widget',
    'django_hstore_field',
    ...
]

Usage

# models.py
from django.db import models
from django_hstore_field import HStoreField

class MyModel(models.Model):
    metadata = HStoreField()

That's it — the widget is auto-wired. No form configuration needed.