Skip to content

Commit 6eaec6d

Browse files
committed
bug fix
1 parent 50dc76c commit 6eaec6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

staffjoy/resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def create(cls, parent=None, **kwargs):
170170

171171
# No envelope on post requests
172172
data = response.json()
173-
obj.route[obj.ID_NAME] = data.get("id", obj.ID_NAME)
173+
obj.route[obj.ID_NAME] = data.get("id", data.get(obj.ID_NAME))
174174
obj.data = data
175175

176176
return obj

0 commit comments

Comments
 (0)