django-hstore-widget


Namedjango-hstore-widget JSON
Version 0.0.14 PyPI version JSON
download
home_pageNone
SummaryHuman friendly HStoreWidget. Continual of django-admin-hstore-widget.
upload_time2024-11-15 04:40:25
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

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/37/3d/f37635437de0f19309ac3522412252ba85616549bb94aa236fe8f7a3aca5/django_hstore_widget-0.0.14.tar.gz",
    "platform": null,
    "description": "# django-hstore-widget\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.14",
    "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": "598c5a52b5afdf1151a78b893a277310d8a0f490e71b522bd36347636552af9b",
                "md5": "7300f0d75ea1edbfa53623562568e293",
                "sha256": "776b2b199d52ad75e67a7a96b9412d5530d5b31564b3d6cb612101a775c4265a"
            },
            "downloads": -1,
            "filename": "django_hstore_widget-0.0.14-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7300f0d75ea1edbfa53623562568e293",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 14938,
            "upload_time": "2024-11-15T04:40:22",
            "upload_time_iso_8601": "2024-11-15T04:40:22.953367Z",
            "url": "https://files.pythonhosted.org/packages/59/8c/5a52b5afdf1151a78b893a277310d8a0f490e71b522bd36347636552af9b/django_hstore_widget-0.0.14-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "373df37635437de0f19309ac3522412252ba85616549bb94aa236fe8f7a3aca5",
                "md5": "5487c9debb109f4ad660e2270e364d65",
                "sha256": "2a2e7d62e12e0f594eedfc16a0448ca341385eb31438a41ac1090048a2980648"
            },
            "downloads": -1,
            "filename": "django_hstore_widget-0.0.14.tar.gz",
            "has_sig": false,
            "md5_digest": "5487c9debb109f4ad660e2270e364d65",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 12238,
            "upload_time": "2024-11-15T04:40:25",
            "upload_time_iso_8601": "2024-11-15T04:40:25.029720Z",
            "url": "https://files.pythonhosted.org/packages/37/3d/f37635437de0f19309ac3522412252ba85616549bb94aa236fe8f7a3aca5/django_hstore_widget-0.0.14.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-15 04:40:25",
    "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.75118s