X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/468c2e650c854ffa691afc73aa1f41ce61283cdb..4e361d55331351f56077e5f9999ecb4ee7e93819:/src/paypal/migrations/0001_initial.py diff --git a/src/paypal/migrations/0001_initial.py b/src/paypal/migrations/0001_initial.py index 879901ae8..6380c0faf 100644 --- a/src/paypal/migrations/0001_initial.py +++ b/src/paypal/migrations/0001_initial.py @@ -1,7 +1,5 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models +import django.db.models.deletion from django.conf import settings @@ -31,11 +29,11 @@ class Migration(migrations.Migration): 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), ), ]