Skip to main content

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)
    )

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
django-array-field-select-0.2.0.tar.gz 2.0 kB Details

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

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

0.1.0

1 release file

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