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
@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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b359d0cd5bf983afe9285841c4aa4c88aca699b1b451e65c1e66fb5470ba0ea9 |
|
MD5 | 4938aa0da9797e324ab2e0d84e264460 |
|
BLAKE2b-256 | bf1edf5ce10bd45f8023413249f795836f1e36b1315b2988da4f0c7b025d3900 |
Close
Hashes for django_hstore_widget-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa4eb37fc3f37cea66a15cca76f12ae3525cbdb994e70c2166469754e8f636ef |
|
MD5 | f9eea18e032f4a10d070da638eabeaa4 |
|
BLAKE2b-256 | 14bffa31e70b8a0bd4bd70e8cccf8214a079efea701809831767421d1a9bb2b1 |