Human friendly HStoreWidget. Continual of django-admin-hstore-widget.
Reason this release was yanked:
The project doesn't have JS File
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
Built Distribution
Close
Hashes for django_hstore_widget-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cec82a00a079140b3044713b88f15ee5d16f512886c7ff5ceb43eda498eae911 |
|
MD5 | 8b62424a4349bbd9702ab62951e9bbf9 |
|
BLAKE2b-256 | c0ee5c1e1e2c1157aa5f73f11a322259e0313978127043041598e6925820d26a |
Close
Hashes for django_hstore_widget-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c83204d71131ca8afb35cf74b21a88a3dc3b3011dd74a9fbe2bf305df06ec652 |
|
MD5 | e1e7d5c1e7181dc8a589e15e88a6bf14 |
|
BLAKE2b-256 | e2f8cca1b8d1efd92b14cb9acfcac3e5186e45f17ad5e7fc74045290a50a5667 |