fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugfix Tah.after_change signal handler.
[wolnelektury.git]
/
apps
/
search
/
management
/
commands
/
reindex.py
diff --git
a/apps/search/management/commands/reindex.py
b/apps/search/management/commands/reindex.py
index
7032565
..
4941354
100755
(executable)
--- a/
apps/search/management/commands/reindex.py
+++ b/
apps/search/management/commands/reindex.py
@@
-1,3
+1,7
@@
+# -*- coding: utf-8 -*-
+# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
import sys
from django.core.management.base import BaseCommand
import sys
from django.core.management.base import BaseCommand
@@
-47,8
+51,8
@@
class Command(BaseCommand):
)
def handle(self, *args, **opts):
from catalogue.models import Book
)
def handle(self, *args, **opts):
from catalogue.models import Book
- import search
- idx =
search.
Index()
+ from search.index import Index
+ idx = Index()
if not opts['just_tags']:
if args:
if not opts['just_tags']:
if args: