django-array-field-select

A replacement for Django's ArrayField with a multiple select form field.


License
MIT
Install
pip install django-array-field-select==0.2.0

Documentation

About

django-array-field-select contains a multi select widget for Django's new postgresql ArrayField.

Credit goes to Brad Montgomery and his blog post

How To Use

Replace the default widget with the new SelectArrayWidget.

Example

from django.forms import ModelForm
from array_field_select.forms import SelectArrayWidget

class MyModelForm(ModelForm):
    class Meta:
        model = MyModel
        widgets = {
            'an_array_field': SelectArrayWidget()
        }