[tasks] Add oauth flow for Todoist

This commit is contained in:
2024-10-14 20:07:53 -04:00
parent 7604327ca9
commit 7954765b73
14 changed files with 777 additions and 37 deletions

View File

@ -1,7 +1,6 @@
from datetime import timedelta
import pytz
from django.utils import timezone
from django.contrib.auth import get_user_model
from django.db import models
from django_extensions.db.models import TimeStampedModel
@ -32,6 +31,9 @@ class UserProfile(TimeStampedModel):
bgg_username = models.CharField(max_length=255, **BNULL)
todoist_auth_key = EncryptedField(**BNULL)
todoist_state = EncryptedField(**BNULL)
redirect_to_webpage = models.BooleanField(default=True)
def __str__(self):