Skip to main content

About

A replacement for Django’s ArrayField with a multiple select form field. This only makes sense if the underlying base_field is using choices.

How To Use

Replace all instances of your Django ArrayField model field with the new ArrayField. No functionality will be changed, except for the form field.

Example

from django.db import models
from array_field_select.fields import ArrayField

class Student(models.Model):
    YEAR_IN_SCHOOL_CHOICES = (
        ('FR', 'Freshman'),
        ('SO', 'Sophomore'),
        ('JR', 'Junior'),
        ('SR', 'Senior'),
    )
    years_in_school = ArrayField(
        models.CharField(max_length=2, choices=YEAR_IN_SCHOOL_CHOICES)
    )

Metadata

Release files for django-array-field-select 0.2.0

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

Source distribution (sdist)

Source distribution for django-array-field-select 0.2.0
File Size Uploaded Provenance Actions
django-array-field-select-0.2.0.tar.gz 2.0 kB Without provenance Details for django-array-field-select-0.2.0.tar.gz

Release files / django-array-field-select-0.2.0.tar.gz

Download URL django-array-field-select-0.2.0.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8e847dc9f8c34c41c89f551ff290cf0dee54c8c3e8cb3ec33fb7e1fe6fbf94db
BLAKE2b-256 checksum
How to use checksums
cefc17653ac004a1047fff0dae4e019fb041472eea109fca41962652dad20faa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-array-field-select 0.2.0

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