Skip to content

Commit

Permalink
CST-10 znick#336 BaseCommand.option_list is deprecated since django 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailyumanov committed Mar 11, 2021
1 parent cfb64aa commit 0e001a0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions anytask/users/management/commands/create_shad.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ def get_users_from_cs_xml(cs_xml_fn):
class Command(BaseCommand):
help = "Creating shad users, python course, shad school."

option_list = BaseCommand.option_list + (
make_option('--year',
action='store',
dest='year',
default=None,
help='Course start year'),
)
def add_arguments(self, parser):
parser.add_argument('--year',
action='store',
dest='year',
default=None,
help='Course start year')


def handle(self, **options):
year = options['year']
Expand Down

0 comments on commit 0e001a0

Please sign in to comment.