Fix #112: missing batch ID in import output

This commit is contained in:
Eliot Berriot 2018-03-06 20:41:39 +01:00
parent b7d35c6a8e
commit dd61dd7416
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
2 changed files with 2 additions and 2 deletions

View File

@ -81,13 +81,12 @@ class Command(BaseCommand):
raise CommandError("Import cancelled.")
batch = self.do_import(matching, user=user, options=options)
message = 'Successfully imported {} tracks'
if options['async']:
message = 'Successfully launched import for {} tracks'
self.stdout.write(message.format(len(matching)))
self.stdout.write(
"For details, please refer to import batch #".format(batch.pk))
"For details, please refer to import batch #{}".format(batch.pk))
@transaction.atomic
def do_import(self, matching, user, options):

View File

@ -0,0 +1 @@
Added missing batch id in output during import (#112)