Add YoutubeCredentials model and implement YouTube OAuth login functionality
This commit is contained in:
parent
f7baa91132
commit
4b2f695afb
9 changed files with 315 additions and 1 deletions
|
@ -3,6 +3,11 @@ from django.db import models
|
|||
from django.urls import reverse
|
||||
|
||||
|
||||
class YoutubeCredentials(models.Model):
|
||||
user = models.OneToOneField(User, on_delete=models.CASCADE)
|
||||
credentials = models.JSONField()
|
||||
|
||||
|
||||
class Group(models.Model):
|
||||
name = models.CharField(verbose_name="Nom du groupe")
|
||||
owner = models.ForeignKey(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue