1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Added HStoreField.

Thanks to `django-hstore` for inspiration in some areas, and many people
for reviews.
This commit is contained in:
Marc Tamlyn
2014-03-14 17:34:49 +00:00
parent 5c517ec218
commit 36f514f065
22 changed files with 864 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
from django.contrib.postgres.fields import ArrayField
from django.contrib.postgres.fields import ArrayField, HStoreField
from django.db import models
@@ -20,3 +20,7 @@ class DateTimeArrayModel(models.Model):
class NestedIntegerArrayModel(models.Model):
field = ArrayField(ArrayField(models.IntegerField()))
class HStoreModel(models.Model):
field = HStoreField(blank=True, null=True)