X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..69b332800a472211b5da70426171fa429702a273:/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 - -