X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ae60b2a3949e96357477cc04f90fd0873cee8a92..8861d28c171c5d759253c6b9ab48b7b10c40858c:/src/api/migrations/0001_initial.py?ds=inline diff --git a/src/api/migrations/0001_initial.py b/src/api/migrations/0001_initial.py index 4d20304bc..a4a8a8486 100644 --- a/src/api/migrations/0001_initial.py +++ b/src/api/migrations/0001_initial.py @@ -1,7 +1,5 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import models, migrations +import django.db.models.deletion class Migration(migrations.Migration): @@ -20,7 +18,7 @@ class Migration(migrations.Migration): ('category', models.CharField(db_index=True, max_length=64, null=True, blank=True)), ('created_at', models.DateTimeField(editable=False, db_index=True)), ('deleted_at', models.DateTimeField(auto_now_add=True, db_index=True)), - ('content_type', models.ForeignKey(to='contenttypes.ContentType')), + ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')), ], options={ },