Closed Bhupesh-V closed 5 years ago
It would be nice to mention the reason why this issue was closed.
The bug was actually in the parameters being passed :sweat_smile:
The function generateTag()
returns 2 values title and a list of values.But the order of returning the said value was different generateTags[0]
gives tags and generateTags[1]
gives the title of tutorial.
title, tagList = generateTags(request.data['link'])
Instead it should have been
tagList, title = generateTags(request.data['link'])
In the file
api/views.py
The linetutorialObject.tags.set(tagList)
is causing the following error.I am trying to send this json repsonse