func DeleteTeacher(w http.ResponseWriter, r *http.Request, params httprouter.Params) {
	redirected, _ := ensureLoggedIn(w, r)
	if redirected {
		return
	}

	short := html.EscapeString(params.ByName("short"))
	teacher := model.Teacher{Short: short}
	if teacher.Exists() {
		teacher.Delete()
	} else {
		http.NotFound(w, r)
		return
	}
}
// DeleteTeacher deletes a teacher and serves nothing (empty 200 OK response).
DeleteTeacher deletes a teacher and serves nothing (empty 200 OK response).
// DeleteTeacher deletes a teacher and serves nothing ( empty 200 OK response ) .
func DeleteTeacher(w http.ResponseWriter, r *http.Request, params httprouter.Params) {
	redirected, _ := ensureLoggedIn(w, r)
	if redirected {
		return
	}
	short := html.EscapeString(params.ByName("short"))
	teacher := model.Teacher{Short: short}
	if teacher.Exists() {
		teacher.Delete()
	} else {
		http.NotFound(w, r)
		return
	}
}
func DeleteTeacher ( w http . ResponseWriter , r * http . Request , params httprouter . Params ) { redirected , _ := ensureLoggedIn ( w , r ) if redirected { return } short := html . EscapeString ( params . ByName ( " " ) ) teacher := model . Teacher { Short : short } if teacher . Exists ( ) { teacher . Delete ( ) } else { http . NotFound ( w , r ) return } }
DeleteTeacher deletes a teacher and serves nothing (empty 200 OK response).
DeleteTeacher deletes a teacher and serves nothing ( empty 200 OK response ) .