Skip to content

Commit 367b060

Browse files
authored
Merge pull request #53 from PROCOLLAB-github/dev
fixed achievements for users #3
2 parents f945ad1 + 76f8c50 commit 367b060

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

users/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ def put(self, request, pk):
111111
achievement_id = i.get("id")
112112
if achievement_id is None:
113113
UserAchievement.objects.create(
114-
title=request.data["title"],
115-
status=request.data["status"],
114+
title=i["title"],
115+
status=i["status"],
116116
user_id=pk,
117117
)
118118
continue

0 commit comments

Comments
 (0)