Map some new urls. Create a new external resource type
- Legacy-Id: 17873
This commit is contained in:
parent
324be05151
commit
d87a1d009b
ietf
|
@ -40,6 +40,8 @@ name_map = {
|
|||
# TODO: Review all the None values below and make sure ignoring the URLs they match is really the right thing to do.
|
||||
url_map = OrderedDict({
|
||||
"https?://github\\.com": "github_repo",
|
||||
"https://git.sr.ht/": "repo",
|
||||
"https://todo.sr.ht/": "tracker",
|
||||
"https?://trac\\.ietf\\.org/.*/wiki": "wiki",
|
||||
"ietf\\.org.*/trac/wiki": "wiki",
|
||||
"trac.*wiki": "wiki",
|
||||
|
|
|
@ -36,6 +36,7 @@ def forward(apps, schema_editor):
|
|||
resourcename("jabber_log","Jabber Log", "url"),
|
||||
resourcename("mailing_list","Mailing List", "url"),
|
||||
resourcename("mailing_list_archive","Mailing List Archive","url"),
|
||||
resourcename("repo","Other Repository", "url")
|
||||
]
|
||||
|
||||
for name in resourcenames:
|
||||
|
|
Loading…
Reference in a new issue