fix: Link to IPR details not history in email (#5252)
* fix: Link to IPR details not history in email Fixes #5251 * Fix test
This commit is contained in:
parent
4f9be6e8a0
commit
5fc93bb8ca
|
@ -583,7 +583,7 @@ I would like to revoke this declaration.
|
|||
get_payload_text(outbox[len_before + 1]).replace('\n', ' ')
|
||||
)
|
||||
self.assertIn(f'{settings.IDTRACKER_BASE_URL}{urlreverse("ietf.ipr.views.showlist")}', get_payload_text(outbox[len_before]).replace('\n',' '))
|
||||
self.assertIn(f'{settings.IDTRACKER_BASE_URL}{urlreverse("ietf.ipr.views.history",kwargs=dict(id=ipr.pk))}', get_payload_text(outbox[len_before+1]).replace('\n',' '))
|
||||
self.assertIn(f'{settings.IDTRACKER_BASE_URL}{urlreverse("ietf.ipr.views.show",kwargs=dict(id=ipr.pk))}', get_payload_text(outbox[len_before+1]).replace('\n',' '))
|
||||
|
||||
def test_notify_generic(self):
|
||||
RoleFactory(name_id='ad',group__acronym='gen')
|
||||
|
|
|
@ -6,7 +6,7 @@ Cc: {{ cc_email }}
|
|||
Dear {{ to_name }}:
|
||||
|
||||
{% filter wordwrap:78 %}
|
||||
An IPR disclosure that pertains to your {{ doc_info }} was submitted to the IETF Secretariat on {{ ipr.get_latest_event_submitted.time|date:"Y-m-d" }} and has been posted on the "IETF Page of Intellectual Property Rights Disclosures" ({{ settings.IDTRACKER_BASE_URL }}{% url "ietf.ipr.views.history" id=ipr.pk %}). The title of the IPR disclosure is "{{ ipr.title }}"
|
||||
An IPR disclosure that pertains to your {{ doc_info }} was submitted to the IETF Secretariat on {{ ipr.get_latest_event_submitted.time|date:"Y-m-d" }} and has been posted on the "IETF Page of Intellectual Property Rights Disclosures" ({{ settings.IDTRACKER_BASE_URL }}{% url "ietf.ipr.views.show" id=ipr.pk %}). The title of the IPR disclosure is "{{ ipr.title }}"
|
||||
{% endfilter %}
|
||||
|
||||
Thank you
|
||||
|
|
Loading…
Reference in a new issue