Made the ping_google command override BaseCommand.handle() rather than execute().

Overriding execute() bypasses the system check framework among other things.
This commit is contained in:
Loic Bistuer 2014-10-19 22:23:50 +07:00
parent c974b7bbe0
commit 0fb83f1491
1 changed files with 1 additions and 1 deletions

View File

@ -8,5 +8,5 @@ class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument('sitemap_url', nargs='?', default=None)
def execute(self, *args, **options):
def handle(self, *args, **options):
ping_google(sitemap_url=options['sitemap_url'])