       student ->
         student
         |> User.changeset(params, :update)
-        |> IO.inspect
         |> add_timestamps()
         |> Repo.update
         |> format_error(student)

defmodule CoursePlanner.Students do
  alias CoursePlanner.Repo
  alias CoursePlanner.User
  import Ecto.Query


  @students from u in User, where: u.role == "Student" and is_nil(u.deleted_at)

  def all do
    Repo.all(@students)
  end

