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.2.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for django_hstore_widget-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88bac548fd6bbb714db2d43c9371fadb4b8dec74ea6a228d8ff95ffde949c0b5 |
|
MD5 | 5e62f0eaefa5bcf7190c4bd966663c29 |
|
BLAKE2b-256 | caf0026e44102e386da170ab4d65f29f399aae00487bda4069016e5fc3071852 |
Close
Hashes for django_hstore_widget-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | def593a864041a489eb62de8cffc0faa2851440af5eca0db0b641b00db1505a8 |
|
MD5 | 553ee955b53a4ced3104f74dd01d8095 |
|
BLAKE2b-256 | eb1442bc9e26d0e8eb3428da0d8f8f755f537006679dfe735c12fabdba5f792c |