* s/Internet Draft/Internet-Draft/i * s/draft/Internet-Draft/i or s/draft/I-D/i * s/ID/I-D/ * Fix tests * a -> an * Undo case-change to ASCII * Address code review comments * Add migrations * Add merged migration * fix: straighten out migrations * fix: finish straightening out migrations --------- Co-authored-by: Robert Sparks <rjsparks@nostrum.com>
18 lines
511 B
Python
18 lines
511 B
Python
# Copyright The IETF Trust 2014-2021, All Rights Reserved
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
from django.core.management.base import BaseCommand, CommandError
|
|
|
|
from ietf.ipr.utils import generate_draft_recursive_txt
|
|
|
|
|
|
class Command(BaseCommand):
|
|
help = ("Generate machine-readable list of IPR disclosures by Internet-Draft name (recursive)")
|
|
|
|
def handle(self, *args, **options):
|
|
try:
|
|
generate_draft_recursive_txt()
|
|
except (ValueError, IOError) as e:
|
|
raise CommandError(e)
|