diff options
| author | Marc Tamlyn <marc.tamlyn@gmail.com> | 2015-05-30 21:22:36 +0100 |
|---|---|---|
| committer | Marc Tamlyn <marc.tamlyn@gmail.com> | 2015-05-30 21:39:45 +0100 |
| commit | 74fe4428e51030cbed768083489f0497f4453c17 (patch) | |
| tree | c5e4c483897bb0ab6f4a61b287329e84fbbbfcc8 /tests/postgres_tests/test_hstore.py | |
| parent | 38eacbde62cd83ffaa64db7719c2c643f69551e0 (diff) | |
Add HasAnyKeys lookup for HStoreField.
Diffstat (limited to 'tests/postgres_tests/test_hstore.py')
| -rw-r--r-- | tests/postgres_tests/test_hstore.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/postgres_tests/test_hstore.py b/tests/postgres_tests/test_hstore.py index 470ede9d22..50a4702716 100644 --- a/tests/postgres_tests/test_hstore.py +++ b/tests/postgres_tests/test_hstore.py @@ -79,6 +79,12 @@ class TestQuerying(PostgresSQLTestCase): self.objs[1:2] ) + def test_has_any_keys(self): + self.assertSequenceEqual( + HStoreModel.objects.filter(field__has_any_keys=['a', 'c']), + self.objs[:3] + ) + def test_key_transform(self): self.assertSequenceEqual( HStoreModel.objects.filter(field__a='b'), |
