Add description field to address representation

Fixes: #1096
This commit is contained in:
Henri Febleux 2022-05-07 18:28:32 +02:00
parent 9be4ed84da
commit 5b4e6ed473

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