Skip to main content

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

Rendered result

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.13.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

django_hstore_widget-0.0.13-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file django_hstore_widget-0.0.13.tar.gz.

File metadata

  • Download URL: django_hstore_widget-0.0.13.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for django_hstore_widget-0.0.13.tar.gz
Algorithm Hash digest
SHA256 be43488be2bfb05f2a0198652138154b82960e714ee0c066e945f41473fa8bbf
MD5 a21a03daf03b33b895287c0524aacdeb
BLAKE2b-256 068b8b919cc7c4602b1e05398c8a5942e4f80663e32908bd71105cab289a2a30

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_hstore_widget-0.0.13.tar.gz:

Publisher: CI.yml on baseplate-admin/django-hstore-widget

Attestations:

File details

Details for the file django_hstore_widget-0.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for django_hstore_widget-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 f71758d688b44c314422b406a4233e9c1c631e324e0471e2f20898367f3361a9
MD5 21652a922c0ca51afd663547f1a85867
BLAKE2b-256 c6cf3406c5a93914735b9d8c3a8cf4c979a801609d012484c37401923ef65cdf

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_hstore_widget-0.0.13-py3-none-any.whl:

Publisher: CI.yml on baseplate-admin/django-hstore-widget

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page