Commit 0fb83f14 authored by Loic Bistuer's avatar Loic Bistuer
Browse files

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

Overriding execute() bypasses the system check framework among other things.
parent c974b7bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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'])