Add creating and basic editing of translation

This commit is contained in:
Thelonius Kort
2023-01-04 14:42:13 +01:00
parent f4b5abef5a
commit d589d84b40
15 changed files with 235 additions and 47 deletions

View File

@ -35,7 +35,10 @@ defmodule Outlook.Translations do
** (Ecto.NoResultsError)
"""
def get_translation!(id), do: Repo.get!(Translation, id)
def get_translation!(id) do
Repo.get!(Translation, id)
|> Repo.preload([:article])
end
@doc """
Creates a translation.