X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/21cd47e315b2e86edeff93bac5d1eca5b5d2c428..05a64b9314fac5f613133332d7d0b5b568ab8afc:/src/documents/models/book.py diff --git a/src/documents/models/book.py b/src/documents/models/book.py index e16de686..75e707e8 100644 --- a/src/documents/models/book.py +++ b/src/documents/models/book.py @@ -45,6 +45,7 @@ class Book(models.Model): 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',