Human friendly HStoreWidget. Continual of django-admin-hstore-widget.
Reason this release was yanked:
Has faulty JavaScript code
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
django_hstore_widget-0.0.7.tar.gz
(10.8 kB
view hashes)
Built Distribution
Close
Hashes for django_hstore_widget-0.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75f4577d6b4a32844e1432dcc1b5fef1e2bc16b0b52922d52104a822274ffb6d |
|
MD5 | d5b1f97d388b2fc279c706c5f0b8688f |
|
BLAKE2b-256 | 70fed26f5f5267a5ec11c35c8f035d3255bbacc97f58f3c8177c673d848939bd |
Close
Hashes for django_hstore_widget-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2768e6aadbb5b2fd5cbd9fe61b55f44dde9a5257d6673380c805530c5f93e4ef |
|
MD5 | 5f185e779c2f42f590d2723265429148 |
|
BLAKE2b-256 | c28efdaa0ec84764ab5f06cc1f9b0f379fbf9ef023428d5885aef78090deff65 |