Django array field support for postgres.
Use unicode csv for text widget (play nice with django admin) and to save array in others database like a text field
the first attribute determines the item type through a field type
from django_pgarray.fields import PgArrayField
- class MyModel(TimeStampedModel):
tags = PgArrayField(models.CharField, verbose_name = _(u"tags"), max_length=80)
- blank = True
- null = True
- default = None
- blank_item = False # allow blank items
- unique_item = True # treat array as a set
- clean lookups posibilites
- manager for contain sql, with extra method of queryset
- tests