Skip to content

Commit c485231

Browse files
committed
bug fix if include querystring parameter is not provided
1 parent f27051e commit c485231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_rest_jsonapi/querystring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def include(self):
179179
180180
:return list: a list of include information
181181
"""
182-
include_param = self.qs.get('include')
182+
include_param = self.qs.get('include', [])
183183

184184
if current_app.config.get('MAX_INCLUDE_DEPTH') is not None:
185185
for include_path in include_param:

0 commit comments

Comments
 (0)