]> git.ipfire.org Git - thirdparty/patchwork.git/commit
models: Add list archive lookup
authorAndrew Donnellan <ajd@linux.ibm.com>
Thu, 22 Aug 2019 07:12:58 +0000 (17:12 +1000)
committerDaniel Axtens <dja@axtens.net>
Thu, 22 Aug 2019 11:14:08 +0000 (21:14 +1000)
commit02ffb131559372373f5f01c1dd9dbd248796c7bc
treecba030f619b9b735f7fc5b5a813d0d327550ea9e
parent64f39cbc2d09889bd238a93d01ab95092e538300
models: Add list archive lookup

Add a list_archive_url_format field to Project, which will contain the
address of a Message-ID redirector, e.g. "https://lore.kernel.org/r/{}".

Add a list_archive_url property to Submission and Comment, to generate an
archive lookup URL based on the Message-ID.

We will use this to display links to mailing list archives.

Also add the new field to the default patchwork project fixture.

Suggested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Daniel Axtens <dja@axtens.net>
patchwork/fixtures/default_projects.xml
patchwork/migrations/0035_project_list_archive_url_format.py [new file with mode: 0644]
patchwork/models.py