Add public_content to casts for translation
Overlooked - should have been in fa7671f972
This commit is contained in:
@ -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],
|
||||
|
||||
Reference in New Issue
Block a user