summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Bistuer <loic.bistuer@gmail.com>2014-10-19 22:23:50 +0700
committerLoic Bistuer <loic.bistuer@gmail.com>2014-10-19 22:26:51 +0700
commit0fb83f1491b5b8bda49270d3cfdde1f1772f8b58 (patch)
treec6f4df925484f69733941f79e4cab274de07946e
parentc974b7bbe0abddd9796c65a23b68e61ba75cb5a3 (diff)
Made the ping_google command override BaseCommand.handle() rather than execute().
Overriding execute() bypasses the system check framework among other things.
-rw-r--r--django/contrib/sitemaps/management/commands/ping_google.py2
1 files changed, 1 insertions, 1 deletions
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'])