10000 Add documentation about ArrayField for Postgres · Issue #2615 · encode/django-rest-framework · GitHub
[go: up one dir, main page]

Skip to content
Add documentation about ArrayField for Postgres #2615
Closed
@rvanlaar

Description

@rvanlaar

Django 1.8 supports the Array data type from postgres.

A simple solution is to use a ListField Serializer:

    field_names = serializers.ListField(child=serializers.CharField(max_length=32, allow_blank=True))

as seen in this issue: https://groups.google.com/forum/#!topic/django-rest-framework/Rolw5yEQ8cU

It would help if this was part of the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0