Human friendly HStoreWidget. Continual of django-admin-hstore-widget.
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.8.tar.gz
(11.0 kB
view hashes)
Built Distribution
Close
Hashes for django_hstore_widget-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4729f15787a8d48a1e116f42b8b4f70b0da9de42fc06cc8bb5a20b3afa12c76 |
|
MD5 | 3a9755cf87fdf06a959c45319bf75413 |
|
BLAKE2b-256 | ea752de0b72097a47667c2bf66761ad1e96544a9a06168fcd81c1ba16e529103 |
Close
Hashes for django_hstore_widget-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 693d7e4eddf4eadee02575f20f6f32ed5d28c99317163717b594ebc6b2b597ae |
|
MD5 | 6260568e9aeae5f5f95833c8fed065ce |
|
BLAKE2b-256 | 676e7e3120ec151837c23121573190b9605441cf1f8a38106fc287fda8b0bece |