Skip to main content

django-json-model-widget

Django widget for storing model instances pairs in flat JsonField.

Install stable version from PyPI

Install from PyPI:

pip install django-flat-json-widget

Usage

Add flat_json_widget to INSTALLED_APPS:

INSTALLED_APPS = [
    # other apps...
    'json_model_widget',
]

Then load the widget where you need it, for example, here's how to use it in the django admin site:

from django import forms
from json_model_widget.widgets import JsonPairInputs
from .models import model1, model2


class MyForm(forms.ModelForm):
    class Meta:
        widgets = {
            'fieldname': JsonPairInputs(model1, model2)
        }

Contributors

Oleg Galichkin galij899@yandex.ru

History

Metadata

Release files for django-json-model-widget 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for django-json-model-widget 0.0.7
File Interpreter ABI Platform
django_json_model_widget-0.0.7-py3-none-any.whl Python 3 none any Details

Release files / django_json_model_widget-0.0.7-py3-none-any.whl

Download URL django_json_model_widget-0.0.7-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51874c4b2a5252ae1429cdbce140b3d9c43c44d3349f0cd505add6117da3409f
BLAKE2b-256 checksum
How to use checksums
db44088ecd42b1dd83685845ffab49904a9e157dc859d9d741f8d2a455364452
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

Security for django-json-model-widget 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page