Commit 5fe168a8 authored by Tarsvini's avatar Tarsvini

edited views

parent 45c53f52
Pipeline #14313374 passed with stages
in 4 minutes and 54 seconds
SSO_USERNAME=gladhi.guarddin
SSO_PASSWORD=ppw123
......@@ -35,7 +35,7 @@ def add_friend(request):
npm = request.POST['npm']
friend = Friend(friend_name=name, npm=npm)
friend.save()
return JsonResponse(friend.as_dict())
return HttpResponse(json.dumps(friend.as_dict()))
def delete_friend(request, friend_id):
Friend.objects.filter(id=friend_id).delete()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment