parent
f4b8fc1d0d
commit
169ab1c10f
|
@ -370,7 +370,7 @@ def document_main(request, name, rev=None):
|
||||||
# already adopted in one group
|
# already adopted in one group
|
||||||
button_text = "Switch adoption"
|
button_text = "Switch adoption"
|
||||||
else:
|
else:
|
||||||
button_text = "Adopt"
|
button_text = "Manage adoption"
|
||||||
actions.append((button_text, urlreverse('ietf.doc.views_draft.adopt_draft', kwargs=dict(name=doc.name))))
|
actions.append((button_text, urlreverse('ietf.doc.views_draft.adopt_draft', kwargs=dict(name=doc.name))))
|
||||||
|
|
||||||
if can_unadopt_draft(request.user, doc) and not doc.get_state_slug() in ["rfc"] and not snapshot:
|
if can_unadopt_draft(request.user, doc) and not doc.get_state_slug() in ["rfc"] and not snapshot:
|
||||||
|
@ -1990,4 +1990,4 @@ def rfcdiff_latest_json(request, name, rev=None):
|
||||||
response['previous'] = f'rfc{match.group(2)}'
|
response['previous'] = f'rfc{match.group(2)}'
|
||||||
if not response:
|
if not response:
|
||||||
raise Http404
|
raise Http404
|
||||||
return HttpResponse(json.dumps(response), content_type='application/json')
|
return HttpResponse(json.dumps(response), content_type='application/json')
|
||||||
|
|
Loading…
Reference in a new issue