Skip to content

Commit

Permalink
Merge pull request #45 from AlexeyUzhva/master
Browse files Browse the repository at this point in the history
Replace `NoArgsCommand` by `BaseCommand` (Fixed 1.10 Compatiability)
  • Loading branch information
xaralis authored Sep 14, 2016
2 parents f9c4415 + 8f8e826 commit 6777b6e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions static_sitemaps/management/commands/refresh_sitemap.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
from django.core.management.base import NoArgsCommand

from django.core.management.base import BaseCommand
from static_sitemaps.generator import SitemapGenerator

__author__ = 'xaralis'


class Command(NoArgsCommand):
class Command(BaseCommand):
command = None
help = 'Generates sitemaps files to a predefined directory.'

def handle_noargs(self, **options):
def handle(self, *args, **options):
generator = SitemapGenerator(int(options.get('verbosity', 0)))
generator.write()

0 comments on commit 6777b6e

Please sign in to comment.