From 0fb83f1491b5b8bda49270d3cfdde1f1772f8b58 Mon Sep 17 00:00:00 2001 From: Loic Bistuer Date: Sun, 19 Oct 2014 22:23:50 +0700 Subject: [PATCH] Made the ping_google command override BaseCommand.handle() rather than execute(). Overriding execute() bypasses the system check framework among other things. --- django/contrib/sitemaps/management/commands/ping_google.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/sitemaps/management/commands/ping_google.py b/django/contrib/sitemaps/management/commands/ping_google.py index 0cac49f13b..f2e7c79856 100644 --- a/django/contrib/sitemaps/management/commands/ping_google.py +++ b/django/contrib/sitemaps/management/commands/ping_google.py @@ -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'])