| 1271 | @skipUnlessDBFeature("supports_json_field") |
| 1272 | def test_set_returning_functions(self): |
| 1273 | class JSONBPathQuery(Func): |
| 1274 | function = "jsonb_path_query" |
| 1275 | output_field = JSONField() |
| 1276 | set_returning = True |
| 1277 | |
| 1278 | test_model = JsonModel.objects.create( |
| 1279 | data={"key": [{"id": 1, "name": "test1"}, {"id": 2, "name": "test2"}]}, id=1 |