Merge branch 'henrif/1096-add-desc-to-add-rep' into 'main'

Add description field to address representation

Closes #1096

See merge request framasoft/mobilizon!1234
This commit is contained in:
Thomas Citharel 2022-05-09 07:36:27 +00:00
commit 4fc5554142

View file

@ -91,7 +91,7 @@ defmodule Mobilizon.Addresses.Address do
def representation(%__MODULE__{} = address) do def representation(%__MODULE__{} = address) do
String.trim( String.trim(
"#{address.street} #{address.postal_code} #{address.locality} #{address.region} #{address.country}" "#{address.description} #{address.street} #{address.postal_code} #{address.locality} #{address.region} #{address.country}"
) )
end end