-# -*- 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 models, migrations
+import django.db.models.deletion
import getpaid.abstract_mixin
('amount_paid', models.DecimalField(default=0, verbose_name='amount paid', max_digits=20, decimal_places=4)),
('external_id', models.CharField(max_length=64, null=True, verbose_name='external id', blank=True)),
('description', models.CharField(max_length=128, null=True, verbose_name='Description', blank=True)),
- ('order', models.ForeignKey(related_name='payment', to='funding.Funding')),
+ ('order', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='payment', to='funding.Funding')),
],
options={
'ordering': ('-created_on',),