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.3.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for django_hstore_widget-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba733c6ccc018ffe6a7b8ba3bc746ef32f8e0883ea0d4d46b3f2a8ef4af1824d |
|
MD5 | 3c783e3b2f0dd94bdc85d4bc60aeefc1 |
|
BLAKE2b-256 | e528caec87e31b1d9c4ea7126017d8e9fce77ca31ac725849c47f1eda04472b2 |
Close
Hashes for django_hstore_widget-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71d393ec3d819574d566d9eef7025baf3b10e42cbe899a3e6cafd65e7ef4448f |
|
MD5 | 5538df2739d7f3a0af26aab7406178da |
|
BLAKE2b-256 | f74d05abb136dc200da330778911d94fcea4dc9bbf31f7416b9800b65986b637 |