When abandoning a chartering effort, only revert to approved charters if there's a chance one is there.

Fixes bug #868
 - Legacy-Id: 4805
This commit is contained in:
Robert Sparks 2012-08-23 19:06:29 +00:00
parent ee2878aa7b
commit 51426f1bd0

View file

@ -73,7 +73,7 @@ def change_state(request, name, option=None):
if "-" not in charter_rev:
charter_rev = charter_rev + "-00"
elif option == "abandon":
if wg.state_id == "proposed":
if wg.state_id in ("proposed","bof","unknown"):
charter_state = State.objects.get(type="charter", slug="notrev")
else:
charter_state = State.objects.get(type="charter", slug="approved")