def __init__(self, *args, **kwargs): self.option_list = self.base_option_list + self.option_list if django.VERSION < (1, 10): options = tuple([optparse_make_option(*_args, **_kwargs) for _args, _kwargs in self.option_list]) self.option_list = options + BaseCommand.option_list super(BaseDbBackupCommand, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs): self.option_list = self.base_option_list + self.option_list if django.VERSION < (1, 10): options = tuple([ optparse_make_option(*_args, **_kwargs) for _args, _kwargs in self.option_list ]) self.option_list = options + BaseCommand.option_list super(BaseDbBackupCommand, self).__init__(*args, **kwargs)