diff options
| author | Marc Tamlyn <marc.tamlyn@gmail.com> | 2014-03-14 17:34:49 +0000 |
|---|---|---|
| committer | Marc Tamlyn <marc.tamlyn@gmail.com> | 2014-11-04 09:26:40 +0000 |
| commit | 36f514f06553ef299001b4e9a5f63ec806a50581 (patch) | |
| tree | 966c1b958c49cd266f76c385acb0a2bd330f7c10 /tests/postgres_tests/models.py | |
| parent | 5c517ec21839358249c6f17611abbf84661fb200 (diff) | |
Added HStoreField.
Thanks to `django-hstore` for inspiration in some areas, and many people
for reviews.
Diffstat (limited to 'tests/postgres_tests/models.py')
| -rw-r--r-- | tests/postgres_tests/models.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/postgres_tests/models.py b/tests/postgres_tests/models.py index 6420ebe1cd..cadab474af 100644 --- a/tests/postgres_tests/models.py +++ b/tests/postgres_tests/models.py @@ -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) |
