From 3362c0cce83f79a936dd6fe042449a403056db90 Mon Sep 17 00:00:00 2001 From: Luis Herrada Date: Fri, 20 Jan 2017 18:27:51 -0600 Subject: [PATCH 1/2] NoArgsCommand is deprecated, use BaseCommand instead. --- schedule/management/commands/load_example_data.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/schedule/management/commands/load_example_data.py b/schedule/management/commands/load_example_data.py index 37a96b5a..70b7d57e 100644 --- a/schedule/management/commands/load_example_data.py +++ b/schedule/management/commands/load_example_data.py @@ -1,11 +1,11 @@ -from django.core.management.base import NoArgsCommand +from django.core.management.base import BaseCommand from django.core.management.color import no_style -class Command(NoArgsCommand): +class Command(BaseCommand): help = "Load some sample data into the db" - def handle_noargs(self, **options): + def handle(self, *args, **options): import datetime from schedule.models import Calendar from schedule.models import Event From 764515259caf8391073e1c152c3f0d949f1730e6 Mon Sep 17 00:00:00 2001 From: Luis Herrada Date: Fri, 20 Jan 2017 18:29:00 -0600 Subject: [PATCH 2/2] NoArgsCommand is deprecated. Use BaseCommand instead. --- schedule/management/commands/load_sample_data.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/schedule/management/commands/load_sample_data.py b/schedule/management/commands/load_sample_data.py index 0f8f65e4..c1363568 100644 --- a/schedule/management/commands/load_sample_data.py +++ b/schedule/management/commands/load_sample_data.py @@ -1,11 +1,11 @@ -from django.core.management.base import NoArgsCommand +from django.core.management.base import BaseCommand from django.core.management.color import no_style -class Command(NoArgsCommand): +class Command(BaseCommand): help = "Load some sample data into the db" - def handle_noargs(self, **options): + def handle(self, *args, **options): import datetime from schedule.models import Calendar from schedule.models import Event