Human friendly HStoreWidget. Continual of django-admin-hstore-widget.
Project description
django-hstore-widget-2
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_admin_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.1.tar.gz
(12.5 kB
view hashes)
Built Distribution
Close
Hashes for django_hstore_widget-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b73c8e3c5ff3aabaee32d62de9500d736cc511d16a448ef184e1f458908a276 |
|
MD5 | 975f070d66ebb9c41da875f0ee1eaf30 |
|
BLAKE2b-256 | f658c1b6a5e591c934662c231fc1e3f0b70d2f5cf1697c6bc1480594cdf9edd3 |
Close
Hashes for django_hstore_widget-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c824f812c812fda93db3275f15cee711d0c03b4eaf0ad5918e093bafef50369e |
|
MD5 | fc1569d23f8c1ee1f7eadf0453801096 |
|
BLAKE2b-256 | d089c7c51421c7065a137833a005c08eb54228754a17ab1dce9458a118b932b7 |