X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..ec7eb5869c48d69091579e928046b52ee7ae96ae:/src/apiclient/models.py 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 - -