Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoArgsCommand is deprecated, use BaseCommand instead. #62

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions schedule/management/commands/load_example_data.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions schedule/management/commands/load_sample_data.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down