fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrades.
[wolnelektury.git]
/
src
/
paypal
/
migrations
/
0001_initial.py
diff --git
a/src/paypal/migrations/0001_initial.py
b/src/paypal/migrations/0001_initial.py
index
879901a
..
7850800
100644
(file)
--- a/
src/paypal/migrations/0001_initial.py
+++ b/
src/paypal/migrations/0001_initial.py
@@
-1,7
+1,8
@@
-#
-*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
+#
This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
from django.db import migrations, models
from django.db import migrations, models
+import django.db.models.deletion
from django.conf import settings
from django.conf import settings
@@
-31,11
+32,11
@@
class Migration(migrations.Migration):
migrations.AddField(
model_name='billingagreement',
name='plan',
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',
),
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),
),
]
),
]