X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..2dd4071b8858c9727ee3e2c09b73b1eadef6e31e:/src/apiclient/models.py?ds=inline diff --git a/src/apiclient/models.py b/src/apiclient/models.py index 64130bc1..898581d0 100644 --- a/src/apiclient/models.py +++ b/src/apiclient/models.py @@ -1,9 +1,12 @@ +# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django.db import models from django.contrib.auth.models import User class OAuthConnection(models.Model): - user = models.ForeignKey(User) + user = models.ForeignKey(User, models.CASCADE) access = models.BooleanField(default=False) token = models.CharField(max_length=64, null=True, blank=True) token_secret = models.CharField(max_length=64, null=True, blank=True) @@ -17,5 +20,3 @@ class OAuthConnection(models.Model): o = cls(user=user, beta=beta) o.save() return o - -