Human friendly HStoreWidget. Continual of django-admin-hstore-widget.
Reason this release was yanked:
The project doesn't have JS File
Project description
django-hstore-widget
FormField that properly render HStoreField Data in django Admin based on djangoauts package
and updated fork of 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:
pip install django-hstore-widget
Installation
# settings.py
INSTALLED_APPS = [
...,
'django_hstore_widget',
...
]
Usage
# 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
exclude = ()
@admin.register(Yourmodel)
class YourmodelAdmin(admin.ModelAdmin):
form = MyModelAdminForm
Result
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_hstore_widget-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7359028a0a904c1a0a405feaa6024e735723c17d49b8eb09b9d4ddd4c5caab5e |
|
MD5 | c9d08a3cab72be977eee988c6525a7a2 |
|
BLAKE2b-256 | 1138b278aae60b464ab6cc9e0db97c0cb47dd193c6ea2b7aaa18de2cdedad5b2 |
Close
Hashes for django_hstore_widget-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e10c2086191efea73c3a076aac309aa264a90e2521f226fa1c5ff0a9f1a8511 |
|
MD5 | dedde830afea2d91b1a07887a284d4f6 |
|
BLAKE2b-256 | 8e4f74f8da189b77a54df978823982d899589400d98c7c3c3baccb671f42839e |