mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-22 22:05:50 +00:00
Always index the specific version of the book
This commit is contained in:
parent
bf2661c952
commit
3d4055e465
1 changed files with 2 additions and 0 deletions
|
|
@ -421,6 +421,8 @@ class BackendTests(WagtailTestUtils):
|
|||
FANTASY_BOOKS = [1, 2, 3, 4, 5, 6, 7]
|
||||
SCIFI_BOOKS = [10]
|
||||
for book in models.Book.objects.filter(id__in=FANTASY_BOOKS + SCIFI_BOOKS):
|
||||
book = book.get_indexed_instance()
|
||||
|
||||
if book.id in FANTASY_BOOKS:
|
||||
book.tags.add('Fantasy')
|
||||
if book.id in SCIFI_BOOKS:
|
||||
|
|
|
|||
Loading…
Reference in a new issue