We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa4c70c commit 4e9ae60Copy full SHA for 4e9ae60
tests/tests.py
@@ -40,6 +40,13 @@ def test_dict_endpoint(self):
40
"pk": 1,
41
"int_field": 1,
42
"__expandable__": ["expandable_dict", "expandable_string"],
43
+ },
44
+ "deep_test": {
45
+ "test": {
46
+ "pk": 1,
47
+ "int_field": 1,
48
+ "__expandable__": ["expandable_dict", "expandable_string"],
49
50
}
51
},
52
)
tests/views.py
@@ -42,4 +42,8 @@ def is_authorized(self):
@endpoint_resource(type=TestModel)
def resource(self):
- return {"test": TestModel.objects.create(int_field=1)}
+ inst = TestModel.objects.create(int_field=1)
+ return {"test": inst,
+ "test": inst
+ }}
0 commit comments