 defmodule JumubaseWeb.PerformanceView do
   use JumubaseWeb, :view
+  import Ecto.Changeset
   import JumubaseWeb.Internal.ContestView, only: [name_with_flag: 1]
   alias Jumubase.JumuParams
   alias Jumubase.Foundation.AgeGroups

      <script src="/js/registration.js"></script>
      <script>registrationForm(<%= raw(json) %>)</script>
    }
  end

  defp birthdate_year_options(season) do


    json = render_html_safe_json(
      %{
        changeset: changeset |> remove_obsolete_associations,
        params: conn.params["performance"],
        contest_category_options: (
          for {name, id, type} <- cc_options do
