Don't show the request publication button for ise,irtf, and iab drafts after publication has already been requested. Fixes #2019. Commit ready for merge.
- Legacy-Id: 12104
This commit is contained in:
parent
5b32cc2da7
commit
933134f4cc
|
@ -804,6 +804,11 @@ class DocTestCase(TestCase):
|
|||
self.assertEqual(r.status_code, 200)
|
||||
self.assertTrue("Request publication" in unicontent(r))
|
||||
|
||||
doc.states.add(State.objects.get(type_id='draft-stream-iab',slug='rfc-edit'))
|
||||
r = self.client.get(urlreverse("doc_view", kwargs=dict(name=doc.name)))
|
||||
self.assertEqual(r.status_code, 200)
|
||||
self.assertTrue("Request publication" not in unicontent(r))
|
||||
|
||||
|
||||
class AddCommentTestCase(TestCase):
|
||||
def test_add_comment(self):
|
||||
|
|
|
@ -334,6 +334,7 @@ def document_main(request, name, rev=None):
|
|||
|
||||
if (doc.get_state_slug() not in ["rfc", "expired"] and doc.stream_id in ("iab", "ise", "irtf")
|
||||
and can_edit_stream_info and not snapshot):
|
||||
if doc.get_state_slug('draft-stream-%s' % doc.stream_id) not in ('rfc-edit', 'pub', 'dead'):
|
||||
label = "Request Publication"
|
||||
if not doc.intended_std_level:
|
||||
label += " (note that intended status is not set)"
|
||||
|
|
Loading…
Reference in a new issue