(form, current_user)
Limits the departments available on forms for acs
Limits the departments available on forms for acs
Limits the departments available on forms for acs
def add_department_query(form, current_user):
    """Limits the departments available on forms for acs"""
    if not current_user.is_administrator:
        form.department.query = Department.query.filter_by(
            id=current_user.ac_department_id)
def add_department_query ( form , current_user ) : if not current_user . is_administrator : form . department . query = Department . query . filter_by ( id = current_user . ac_department_id )