Add title field to YoutubeCredentials model and update related templates and tasks
This commit is contained in:
parent
f36fe8ea84
commit
83404e2ed5
6 changed files with 22 additions and 6 deletions
|
@ -381,8 +381,8 @@ class YoutubeCallbackView(LoginRequiredMixin, View):
|
|||
"client_id": credentials.client_id,
|
||||
"client_secret": credentials.client_secret,
|
||||
"granted_scopes": credentials.granted_scopes,
|
||||
"channel_title": res["items"][0]["snippet"]["title"],
|
||||
}
|
||||
},
|
||||
"title": res["items"][0]["snippet"]["title"],
|
||||
},
|
||||
)
|
||||
messages.add_message(request, messages.SUCCESS, "Connexion à Youtube réussie.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue