Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/baseplate-admin/django-hstore-widget
Human friendly HStoreWidget. Continual of django-admin-hstore-widget.
https://github.com/baseplate-admin/django-hstore-widget
django django-admin django-admin-panel hstore postgres postgresql
Last synced: 17 days ago
JSON representation
Human friendly HStoreWidget. Continual of django-admin-hstore-widget.
- Host: GitHub
- URL: https://github.com/baseplate-admin/django-hstore-widget
- Owner: baseplate-admin
- License: mit
- Created: 2024-10-12T08:10:31.000Z (about 1 month ago)
- Default Branch: master
- Last Pushed: 2024-10-25T04:55:48.000Z (19 days ago)
- Last Synced: 2024-10-26T03:40:18.689Z (18 days ago)
- Topics: django, django-admin, django-admin-panel, hstore, postgres, postgresql
- Language: TypeScript
- Homepage: https://pypi.org/project/django-hstore-widget/
- Size: 268 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 UpUsing 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 formsfrom django_hstore_widget.forms import HStoreFormField
from models import Yourmodelclass 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)