commit tx
authorMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Tue, 31 Jan 2012 12:20:39 +0000 (13:20 +0100)
committerMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Tue, 31 Jan 2012 12:20:39 +0000 (13:20 +0100)
apps/catalogue/management/commands/importbooks.py

index 7fe6022..ff9184e 100644 (file)
@@ -127,7 +127,8 @@ class Command(BaseCommand):
                         else:
                             self.import_book(file_path, options)
                         files_imported += 1
-
+                        transaction.commit()
+                        
                     except (Book.AlreadyExists, Picture.AlreadyExists):
                         print self.style.ERROR('%s: Book or Picture already imported. Skipping. To overwrite use --force.' %
                             file_path)