Fixes #4191: backward search.
[redakcja.git] / src / documents / models / book.py
index e16de68..75e707e 100644 (file)
@@ -45,6 +45,7 @@ class Book(models.Model):
         models.DO_NOTHING,
         to_field='slug',
         null=True, blank=True,
         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',
         editable=False, db_index=True,
         related_name='document_books',
         related_query_name='document_book',