X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/6a259b96cff47e1fd64cbfd6f3d1e1d8e8b6486c..b7cc868621c5c2e7976cd12c4eb0ba81da8ca87c:/apps/catalogue/management/commands/merge_books.py diff --git a/apps/catalogue/management/commands/merge_books.py b/apps/catalogue/management/commands/merge_books.py old mode 100755 new mode 100644 index 00014dfd..62f8381e --- a/apps/catalogue/management/commands/merge_books.py +++ b/apps/catalogue/management/commands/merge_books.py @@ -8,7 +8,7 @@ from django.core.management.base import BaseCommand from django.core.management.color import color_style from django.db import transaction -from slughifi import slughifi +from fnpdjango.utils.text.slughifi import slughifi from catalogue.models import Book @@ -111,8 +111,8 @@ class Command(BaseCommand): force = options.get('force') guess = options.get('guess') dry_run = options.get('dry_run') - new_slug = options.get('new_slug') - new_title = options.get('new_title') + new_slug = options.get('new_slug').decode('utf-8') + new_title = options.get('new_title').decode('utf-8') verbose = options.get('verbose') if guess: