Fixed the handling of help pages for doc states.

- Legacy-Id: 5911
This commit is contained in:
Henrik Levkowetz 2013-07-29 13:25:10 +00:00
parent 5171e331e7
commit 7a131cd777

View file

@ -11,7 +11,7 @@ def state_help(request, type):
"draft-iana-action": ("draft-iana-action", "IANA Action States For Internet-Drafts"),
"charter": ("charter", "Charter States"),
"conflict-review": ("conflrev", "Conflict Review States")
}.get(type, "")
}.get(type, (None, None))
state_type = get_object_or_404(StateType, slug=slug)
states = State.objects.filter(type=state_type).order_by("order")