From bcfed9cb79675a3bb4c83cf5a60873eb74e90a60 Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Tue, 22 Jun 2021 14:11:06 +0200 Subject: [PATCH] Use BaseCommand on orchestraversion class NoArgsCommand has been removed on Django 1.10 --- orchestra/management/commands/orchestraversion.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/orchestra/management/commands/orchestraversion.py b/orchestra/management/commands/orchestraversion.py index b71ee13c..a24814a9 100644 --- a/orchestra/management/commands/orchestraversion.py +++ b/orchestra/management/commands/orchestraversion.py @@ -1,10 +1,10 @@ -from django.core.management.base import NoArgsCommand +from django.core.management.base import BaseCommand from orchestra import get_version -class Command(NoArgsCommand): +class Command(BaseCommand): help = 'Shows django-orchestra version' - def handle_noargs(self, **options): + def handle(self, *args, **options): self.stdout.write(get_version())