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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user