Commit 9aaa8d05 authored by Rafal's avatar Rafal

try remove arguments

parent 38809256
......@@ -6,7 +6,7 @@ from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
help = ''
def handle(self):
def handle(self, *args, **options):
call_command('init_users')
call_command('init_localizations')
call_command('init_tags')
......
......@@ -8,9 +8,6 @@ from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
help = 'Closes the specified poll for voting'
def add_arguments(self, parser):
parser.add_argument('poll_id', nargs='+', type=int)
def handle(self, *args, **options):
users = [
'admin', 'Antek', 'Rafal', 'Klaudia'
......
......@@ -10,10 +10,6 @@ from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = 'Closes the specified poll for voting'
def add_arguments(self, parser):
parser.add_argument('poll_id', nargs='+', type=int)
def handle(self, *args, **options):
apis = [
......
......@@ -8,9 +8,6 @@ from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
help = 'Closes the specified poll for voting'
def add_arguments(self, parser):
parser.add_argument('poll_id', nargs='+', type=int)
def handle(self, *args, **options):
users = [
'admin', 'Antek', 'Rafal', 'Klaudia'
......
......@@ -6,9 +6,6 @@ from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
help = 'Closes the specified poll for voting'
def add_arguments(self, parser):
parser.add_argument('poll_id', nargs='+', type=int)
def handle(self, *args, **options):
users = [
['admin', 'admin', 'admin@gmail.com', ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment