From b51090fd595f1f7787bb39b638f1bcf4cac7b676 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Wed, 30 Aug 2017 12:01:52 +0200 Subject: [PATCH 1/1] minor fix --- apps/catalogue/management/commands/mark_final.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/catalogue/management/commands/mark_final.py b/apps/catalogue/management/commands/mark_final.py index 91281bbb..5fe025e5 100644 --- a/apps/catalogue/management/commands/mark_final.py +++ b/apps/catalogue/management/commands/mark_final.py @@ -41,7 +41,7 @@ class Command(BaseCommand): print 'processing %s' % book.slug chunk = book.chunk_set.first() src = chunk.head.materialize() - new_head = chunk.commit( + chunk.commit( text=src, author=user, description=u'Ostateczna akceptacja merytoryczna przez kierownika literackiego.', @@ -49,4 +49,3 @@ class Command(BaseCommand): publishable=True ) print 'committed %s' % book.slug - new_head.set_publishable(True) -- 2.20.1