'Ensure that the template status is set to Active'

@staticmethod
def series_onaccept(form):

    if form.vars.template_id:
        template_id = form.vars.template_id
    else:
        return
    table = current.s3db.survey_template
    current.db((table.id == template_id)).update(status=2)
