fix: copy_ufo_sanjiaozhou_catalog 的 --list-clubs 可不传 --to-club
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -53,8 +53,8 @@ class Command(BaseCommand):
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--to-club',
|
'--to-club',
|
||||||
type=str,
|
type=str,
|
||||||
required=True,
|
default='',
|
||||||
help='目标俱乐部 club_id(必须显式指定,如 lxs 或 lsx)',
|
help='目标俱乐部 club_id(必须显式指定,如 lxs;--list-clubs 时可省略)',
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--leixing-name',
|
'--leixing-name',
|
||||||
@@ -101,7 +101,10 @@ class Command(BaseCommand):
|
|||||||
confirm = (options.get('i_confirm_to_club') or '').strip()
|
confirm = (options.get('i_confirm_to_club') or '').strip()
|
||||||
|
|
||||||
if not to_club:
|
if not to_club:
|
||||||
raise CommandError('必须传 --to-club=...')
|
raise CommandError(
|
||||||
|
'必须传 --to-club=...(龙先生当前库为 lxs)。'
|
||||||
|
'仅查看俱乐部列表时用:python manage.py copy_ufo_sanjiaozhou_catalog --list-clubs'
|
||||||
|
)
|
||||||
|
|
||||||
self.stdout.write(self.style.NOTICE('—— Club 表候选(名称含「龙先生」)——'))
|
self.stdout.write(self.style.NOTICE('—— Club 表候选(名称含「龙先生」)——'))
|
||||||
self._list_clubs(Club, only_hint=True)
|
self._list_clubs(Club, only_hint=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user