Skip to main content

An easy to use postgres hstore field that is based on django-hstore-widget

Project description

django-hstore-field

PyPI Downloads CI Pypi Badge pre-commit.ci status

An easy to use postgres hstore field that is based on django-hstore-widget

Requirements

  • Python 3.9 and Up ( well technically any python version from 3.6 should work )
  • Django 3.2 and Up
  • Modern browsers ( Chrome 112+, Firefox 117+, Safari 16.5+ or any browsers supporting css nesting )

Installation

pip install django-hstore-field

Usage

Option 1:

Include django-hstore-widget in your settings.py's INSTALLED_APPS:

# settings.py

INSTALLED_APPS = [
    ...,
    'django_hstore_widget',
    ...
]

Option 2:

Include django-hstore-widget's migration to any of your model's migration:

# Generated migration file
from django.db import migrations, models
import django.contrib.postgres.fields


class Migration(migrations.Migration):
    dependencies = [
        ("django_hstore_widget", "__latest__"),
    ]

    operations = [
        ...
    ]

and then use it:

# yourapp/models.py
from django.db import models
from django_hstore_field import HStoreField


class ExampleModel(models.Model):
    data = HStoreField()

Example:

Check the cats directory

[!NOTE]
If you want a lower level implementation, please check django-hstore-widget.

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_field-0.0.4.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_hstore_field-0.0.4-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file django_hstore_field-0.0.4.tar.gz.

File metadata

  • Download URL: django_hstore_field-0.0.4.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_hstore_field-0.0.4.tar.gz
Algorithm Hash digest
SHA256 c89299632dc3a7041d85d09eaf0b4d8f802f4c1c2f792720855fa036c978c342
MD5 025d7ace92737bff90bfb27c9eda3317
BLAKE2b-256 0340acf68ce46b7e8682500db13bc69ea1b24b860d48bfc2e8e8d89b0de36cc3

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_hstore_field-0.0.4.tar.gz:

Publisher: CI.yaml on baseplate-admin/django-hstore-field

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_hstore_field-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for django_hstore_field-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 63e7d4893e3b6f185947660d00780b7362e8e46df51661a8c9e11cb70152f3ca
MD5 9875189122f48f0f5b02485d2841160b
BLAKE2b-256 857dbfb4da1f760d4aabc58de68a991219663de369903490ef31490cd04eac5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_hstore_field-0.0.4-py3-none-any.whl:

Publisher: CI.yaml on baseplate-admin/django-hstore-field

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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