We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1395e36 commit 46f6fd1Copy full SHA for 46f6fd1
uliweb_apijson/apijson/views.py
@@ -36,7 +36,9 @@ def _apply_vars(self):
36
if v:
37
self.rdict[key[:-1]] = v
38
39
- def _ref_get(self,path,context={}):
+ def _ref_get(self,path,context=None):
40
+ if context==None:
41
+ context = {}
42
if path[0]=="/":
43
#relative path
44
c = context
@@ -143,7 +145,7 @@ def _get_one(self,key):
143
145
ref_fields.append(n)
144
146
col_name = n[:-1]
147
path = params[n]
- refs[col_name] = self._ref_get(path)
148
+ refs[col_name] = self._ref_get(path,context=self.rdict)
149
for i in ref_fields:
150
del params[i]
151
params.update(refs)
0 commit comments