@user_required
def post(self, user):
    parser = reqparse.RequestParser()
    parser.add_argument('wordlist', help='This wordlist cannot be blank', required=True)
    wordlist_id = parser.parse_args()
    wordlist = models.WordList.objects(id=wordlist_id['wordlist']).first()
    user.wordlist = wordlist
    user.save()
    return {'message': 'ok', 'wordlist': wordlist.name}
@user_required
def post(self, user):
    parser = reqparse.RequestParser()
    parser.add_argument('wordlist', help='This wordlist cannot be blank', required=True)
    wordlist_id = parser.parse_args()
    wordlist = models.WordList.objects(id=wordlist_id['wordlist']).first()
    user.wordlist = wordlist
    user.save()
    return {'message': 'ok', 'wordlist': wordlist.name}