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

Uploaded Source

Built Distribution

django_hstore_widget-0.0.14-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_hstore_widget-0.0.14.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.14.tar.gz
Algorithm Hash digest
SHA256 2a2e7d62e12e0f594eedfc16a0448ca341385eb31438a41ac1090048a2980648
MD5 5487c9debb109f4ad660e2270e364d65
BLAKE2b-256 373df37635437de0f19309ac3522412252ba85616549bb94aa236fe8f7a3aca5

See more details on using hashes here.

Provenance

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

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

Attestations:

File details

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

File metadata

File hashes

Hashes for django_hstore_widget-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 776b2b199d52ad75e67a7a96b9412d5530d5b31564b3d6cb612101a775c4265a
MD5 7300f0d75ea1edbfa53623562568e293
BLAKE2b-256 598c5a52b5afdf1151a78b893a277310d8a0f490e71b522bd36347636552af9b

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_hstore_widget-0.0.14-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