diff --git a/lib/outlook/translations/translation.ex b/lib/outlook/translations/translation.ex index 6a33ef3..2b35889 100644 --- a/lib/outlook/translations/translation.ex +++ b/lib/outlook/translations/translation.ex @@ -24,7 +24,7 @@ defmodule Outlook.Translations.Translation do @doc false def changeset(translation, attrs) do translation - |> cast(attrs, [:language, :title, :teaser, :date, :public, :unauthorized, :article_id]) + |> cast(attrs, [:language, :title, :teaser, :date, :public, :unauthorized, :article_id, :public_content]) |> cast(attrs, [:content]) |> validate_required([:language, :title, :content, :date, :public, :unauthorized, :article_id]) |> unique_constraint([:language, :article_id],