minor fix
authorJan Szejko <janek37@gmail.com>
Wed, 30 Aug 2017 10:01:52 +0000 (12:01 +0200)
committerJan Szejko <janek37@gmail.com>
Wed, 30 Aug 2017 10:01:52 +0000 (12:01 +0200)
apps/catalogue/management/commands/mark_final.py

index 91281bb..5fe025e 100644 (file)
@@ -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)