from django.core.management.base import BaseCommand

from wcd_pth_migration.models import WhatTorrentMigrationStatus


class Command(BaseCommand):
    help = 'Saves the current complete uploads as WhatTorrentGroupMatching objects'

    def add_arguments(self, parser):
        parser.add_argument('what_torrent_id')

    def handle(self, *args, **options):
        torrent_id = args[0]
        WhatTorrentMigrationStatus.objects.filter(what_torrent_id=torrent_id).delete()

@@ -375,14 +375,33 @@
 d = 
-args%5B0
+options%5B'what_torrent_id'
 %5D%0A  
@@ -445,14 +445,11 @@
 cts.
-filter
+get
 (wha

Fix bug in clear_pth_torrent_upload_status