-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
from django.db import models, migrations
+import django.db.models.deletion
class Migration(migrations.Migration):
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('anchor', models.CharField(max_length=64)),
- ('book', models.ForeignKey(to='catalogue.Book')),
- ('note', models.ForeignKey(to='dictionary.Note')),
+ ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='catalogue.Book')),
+ ('note', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dictionary.Note')),
],
options={
'ordering': ['book'],