-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
+# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
+#
from django.db import migrations, models
+import django.db.models.deletion
from django.conf import settings
migrations.AddField(
model_name='billingagreement',
name='plan',
- field=models.ForeignKey(to='paypal.BillingPlan'),
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='paypal.BillingPlan'),
),
migrations.AddField(
model_name='billingagreement',
name='user',
- field=models.ForeignKey(to=settings.AUTH_USER_MODEL),
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
]