File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -588,13 +588,23 @@ def approve(request, name):
588588
589589 new_state = GroupStateName .objects .get (slug = "active" )
590590 if wg .state != new_state :
591+ # update history with current state
591592 save_group_in_history (wg )
593+ # change wg state and save the wg
592594 prev_state = wg .state
593595 wg .state = new_state
594596 wg .time = e .time
595597 wg .save ()
598+ # create an event for the wg state change, too
599+ e = ChangeStateGroupEvent (group = wg , type = "changed_state" )
600+ e .time = wg .time
601+ e .by = login
602+ e .state_id = "proposed"
603+ e .desc = "Proposed group"
604+ e .save ()
605+ # update the change description for the email
596606 change_description += " and WG state has been changed to %s" % new_state .name
597-
607+
598608 e = log_state_changed (request , charter , login , prev_charter_state )
599609
600610 # according to spec, 00-02 becomes 01, so copy file and record new revision
You can’t perform that action at this time.
0 commit comments