Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Merge pull request #746 from lazerscience/fix-update-index-output

Using force_text for indexing message
  • Loading branch information...
2 parents 8e86909 + 059b543 commit 0e8bd20c18ce3133b3a4f285a4c420bb621ac49b @bigjust bigjust committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 haystack/management/commands/
4 haystack/management/commands/
@@ -8,7 +8,7 @@
from django.core.exceptions import ImproperlyConfigured
from import LabelCommand
from django.db import reset_queries
-from django.utils.encoding import smart_str
+from django.utils.encoding import smart_str, force_unicode
from haystack import connections as haystack_connections
from haystack.query import SearchQuerySet
@@ -241,7 +241,7 @@ def update_backend(self, label, using):
total = qs.count()
if self.verbosity >= 1:
- print "Indexing %d %s." % (total, smart_str(model._meta.verbose_name_plural))
+ print "Indexing %d %s." % (total, force_unicode(model._meta.verbose_name_plural))
pks_seen = set([smart_str(pk) for pk in qs.values_list('pk', flat=True)])
batch_size = self.batchsize or backend.batch_size

0 comments on commit 0e8bd20

Please sign in to comment.
Something went wrong with that request. Please try again.