X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ae60b2a3949e96357477cc04f90fd0873cee8a92..3f527019946f993c9d1cadd41e80c2c7eac188ed:/src/suggest/migrations/0001_initial.py

diff --git a/src/suggest/migrations/0001_initial.py b/src/suggest/migrations/0001_initial.py
index b02889762..e61375afc 100644
--- a/src/suggest/migrations/0001_initial.py
+++ b/src/suggest/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 models, migrations
+import django.db.models.deletion
 from django.conf import settings
 
 
@@ -21,7 +22,7 @@ class Migration(migrations.Migration):
                 ('audiobooks', models.TextField(null=True, verbose_name='audiobooks', blank=True)),
                 ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='creation date')),
                 ('ip', models.GenericIPAddressField(verbose_name='IP address')),
-                ('user', models.ForeignKey(blank=True, to=settings.AUTH_USER_MODEL, null=True)),
+                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, blank=True, to=settings.AUTH_USER_MODEL, null=True)),
             ],
             options={
                 'ordering': ('-created_at',),
@@ -38,7 +39,7 @@ class Migration(migrations.Migration):
                 ('description', models.TextField(verbose_name='Description', blank=True)),
                 ('created_at', models.DateTimeField(auto_now=True, verbose_name='creation date')),
                 ('ip', models.GenericIPAddressField(verbose_name='IP address')),
-                ('user', models.ForeignKey(blank=True, to=settings.AUTH_USER_MODEL, null=True)),
+                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, blank=True, to=settings.AUTH_USER_MODEL, null=True)),
             ],
             options={
                 'ordering': ('-created_at',),