migrations.AlterField(
model_name='book',
name='dc_slug',
- field=models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='catalogue.Book', to_field='slug'),
+ field=models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='catalogue.Book', to_field='slug', db_constraint=False),
),
]
migrations.AlterField(
model_name='book',
name='catalogue_book',
- field=models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='document_books', related_query_name='document_book', to='catalogue.Book', to_field='slug'),
+ field=models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='document_books', related_query_name='document_book', to='catalogue.Book', to_field='slug', db_constraint=False),
),
]
models.DO_NOTHING,
to_field='slug',
null=True, blank=True,
+ db_constraint=False,
editable=False, db_index=True,
related_name='document_books',
related_query_name='document_book',