Provide a full URL to the last call email, rather than just the local url path.

- Legacy-Id: 2913
This commit is contained in:
Henrik Levkowetz 2011-03-24 12:37:45 +00:00
parent 5daa6a86c8
commit dbe590372a

View file

@ -633,8 +633,10 @@ def make_last_call(request, name):
filename_fragment = doc.filename[:-4]
iprs = IprDetail.objects.filter(title__icontains=filename_fragment)
if iprs:
links = [urlreverse("ietf.ipr.views.show", kwargs=dict(ipr_id=i.ipr_id))
links = [ urlreverse("ietf.ipr.views.show", kwargs=dict(ipr_id=i.ipr_id))
for i in iprs]
links = [ settings.IDTRACKER_BASE_URL+url if not url.startswith("http") else url for url in links ]
announcement += "\n\n"
announcement += "The following IPR Declarations may be related to this I-D:"