Use BaseCommand on orchestraversion

class NoArgsCommand has been removed on Django 1.10
This commit is contained in:
Santiago L 2021-06-22 14:11:06 +02:00
parent 7b59931bcf
commit bcfed9cb79

View file

@ -1,10 +1,10 @@
from django.core.management.base import NoArgsCommand from django.core.management.base import BaseCommand
from orchestra import get_version from orchestra import get_version
class Command(NoArgsCommand): class Command(BaseCommand):
help = 'Shows django-orchestra version' help = 'Shows django-orchestra version'
def handle_noargs(self, **options): def handle(self, *args, **options):
self.stdout.write(get_version()) self.stdout.write(get_version())