This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
packages: | |
yum: | |
libjpeg-turbo-devel: [] | |
libpng-devel: [] | |
libcurl-devel: [] | |
commands: | |
01_install_rhel_pg: | |
command: "(yum repolist |grep -q pgdg96) || sudo yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-ami201503-96-9.6-2.noarch.rpm -y" | |
02_install_pg_devel: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.utils.datastructures import MultiValueDict | |
class ArrayFieldSelectMultiple(forms.SelectMultiple): | |
"""This is a Form Widget for use with a Postgres ArrayField. It implements | |
a multi-select interface that can be given a set of `choices`. | |
You can provide a `delimiter` keyword argument to specify the delimeter used. | |
""" | |
def __init__(self, *args, **kwargs): | |
# Accept a `delimiter` argument, and grab it (defaulting to a comma) |