Add hasformats from relation field.