django-hstore-widget


Namedjango-hstore-widget JSON
Version 0.0.15 PyPI version JSON
download
home_pageNone
SummaryHuman friendly HStoreWidget. Continual of django-admin-hstore-widget.
upload_time2024-12-02 14:29:11
maintainerNone
docs_urlNone
authorbaseplate-admin
requires_python>=3.8
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # django-hstore-widget


[![Downloads](https://static.pepy.tech/badge/django-hstore-widget)](https://pepy.tech/project/django-hstore-widget)  [![CI](https://github.com/baseplate-admin/django-hstore-widget/actions/workflows/CI.yml/badge.svg)](https://github.com/baseplate-admin/django-hstore-widget/actions/workflows/test.yml) [![Pypi Badge](https://img.shields.io/pypi/v/django-hstore-widget.svg)](https://pypi.org/project/django-hstore-widget/) [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/baseplate-admin/django-hstore-widget/master.svg)](https://results.pre-commit.ci/latest/github/baseplate-admin/django-hstore-widget/master)

---

FormField that properly render HStoreField Data in django Admin based on [`djangoauts package`](https://github.com/djangonauts/django-hstore) and updated fork of [`django-admin-hstore-widget`](https://github.com/PokaInc/django-admin-hstore-widget)

## Requirements

-   Python 3.9 and Up ( well technically any python version from 3.6 should work )
-   Django 3.2 and Up

Using pip:

```bash
pip install django-hstore-widget
```

## Installation

```python

# settings.py

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

```

## Usage

```python
# yourmodel/admin.py
from django.contrib import admin
from django import forms

from django_hstore_widget.forms import HStoreFormField
from models import Yourmodel

class MyModelAdminForm(forms.ModelForm):
    my_hstore_field = HStoreFormField()

    class Meta:
       model = Yourmodel

@admin.register(Yourmodel)
class YourmodelAdmin(admin.ModelAdmin):
    form = MyModelAdminForm

```

## Result

![Rendered result](./assets/rendered.png)


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "django-hstore-widget",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "baseplate-admin",
    "author_email": "61817579+baseplate-admin@users.noreply.github.com",
    "download_url": "https://files.pythonhosted.org/packages/48/3f/96487ed10d2a179318b0d1d6256aa68675dffbbba77e683e88dc02531c69/django_hstore_widget-0.0.15.tar.gz",
    "platform": null,
    "description": "# django-hstore-widget\n\n\n[![Downloads](https://static.pepy.tech/badge/django-hstore-widget)](https://pepy.tech/project/django-hstore-widget)  [![CI](https://github.com/baseplate-admin/django-hstore-widget/actions/workflows/CI.yml/badge.svg)](https://github.com/baseplate-admin/django-hstore-widget/actions/workflows/test.yml) [![Pypi Badge](https://img.shields.io/pypi/v/django-hstore-widget.svg)](https://pypi.org/project/django-hstore-widget/) [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/baseplate-admin/django-hstore-widget/master.svg)](https://results.pre-commit.ci/latest/github/baseplate-admin/django-hstore-widget/master)\n\n---\n\nFormField that properly render HStoreField Data in django Admin based on [`djangoauts package`](https://github.com/djangonauts/django-hstore) and updated fork of [`django-admin-hstore-widget`](https://github.com/PokaInc/django-admin-hstore-widget)\n\n## Requirements\n\n-   Python 3.9 and Up ( well technically any python version from 3.6 should work )\n-   Django 3.2 and Up\n\nUsing pip:\n\n```bash\npip install django-hstore-widget\n```\n\n## Installation\n\n```python\n\n# settings.py\n\nINSTALLED_APPS = [\n    ...,\n    'django_hstore_widget',\n    ...\n]\n\n```\n\n## Usage\n\n```python\n# yourmodel/admin.py\nfrom django.contrib import admin\nfrom django import forms\n\nfrom django_hstore_widget.forms import HStoreFormField\nfrom models import Yourmodel\n\nclass MyModelAdminForm(forms.ModelForm):\n    my_hstore_field = HStoreFormField()\n\n    class Meta:\n       model = Yourmodel\n\n@admin.register(Yourmodel)\nclass YourmodelAdmin(admin.ModelAdmin):\n    form = MyModelAdminForm\n\n```\n\n## Result\n\n![Rendered result](./assets/rendered.png)\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Human friendly HStoreWidget. Continual of django-admin-hstore-widget.",
    "version": "0.0.15",
    "project_urls": {
        "Bug Tracker": "https://github.com/baseplate-admin/django-hstore-widget/issues",
        "homepage": "https://github.com/baseplate-admin/django-hstore-widget",
        "repository": "https://github.com/baseplate-admin/django-hstore-widget"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e14640509a45eb34d8ff99a463b9c967bc828ff7166b0c14d010160e7bce5072",
                "md5": "398e99fa48fb24f790f11c3fea3254fc",
                "sha256": "9bb01762af3b6ddb79258bee2379f8bdc06f8d73f55f283bb678d7cf66b4d3bf"
            },
            "downloads": -1,
            "filename": "django_hstore_widget-0.0.15-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "398e99fa48fb24f790f11c3fea3254fc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 16069,
            "upload_time": "2024-12-02T14:29:09",
            "upload_time_iso_8601": "2024-12-02T14:29:09.629136Z",
            "url": "https://files.pythonhosted.org/packages/e1/46/40509a45eb34d8ff99a463b9c967bc828ff7166b0c14d010160e7bce5072/django_hstore_widget-0.0.15-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "483f96487ed10d2a179318b0d1d6256aa68675dffbbba77e683e88dc02531c69",
                "md5": "012f16a1a419ad259ab8146e8c3d466b",
                "sha256": "ffba4bb00448123dcdb753bc14d6f0d32be7d9c93cb8486d455615ae1bad0d23"
            },
            "downloads": -1,
            "filename": "django_hstore_widget-0.0.15.tar.gz",
            "has_sig": false,
            "md5_digest": "012f16a1a419ad259ab8146e8c3d466b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 12961,
            "upload_time": "2024-12-02T14:29:11",
            "upload_time_iso_8601": "2024-12-02T14:29:11.482900Z",
            "url": "https://files.pythonhosted.org/packages/48/3f/96487ed10d2a179318b0d1d6256aa68675dffbbba77e683e88dc02531c69/django_hstore_widget-0.0.15.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-02 14:29:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "baseplate-admin",
    "github_project": "django-hstore-widget",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "django-hstore-widget"
}
        
Elapsed time: 0.47532s