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
django_hstore_widget-0.0.9.tar.gz
(11.8 kB
view hashes)
Built Distribution
Close
Hashes for django_hstore_widget-0.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 075b378d1121755412fdd56caa4c63aa468ffbeb056f6b4a1b1de8cf8152f064 |
|
MD5 | 18e9f31eeabfcb79c172c8fcad91827d |
|
BLAKE2b-256 | 5000e4a0479399ec25669638120791ce3a5ebb1858945df84118c04ac0d72d6f |
Close
Hashes for django_hstore_widget-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad32ecb4ef2dcff450d0681e6b60bae85244173eb6fbbbe9683d094aec9f5743 |
|
MD5 | c44b10cb7e3fdc9bc9d766babe7fbb57 |
|
BLAKE2b-256 | b34e5cd6af0b2c7982f61e988c91a7c9580ed04373365ce93157bf7f546e1e62 |