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:
parent
c974b7bbe0
commit
0fb83f1491
|
@ -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'])
|
||||
|
|
Loading…
Reference in New Issue