Skip to content
Snippets Groups Projects
Verified Commit dd61dd74 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fix #112: missing batch ID in import output

parent b7d35c6a
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
Added missing batch id in output during import (#112)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment