Support for model properties that are not fields in LayerMapping
|Reported by:||Melvyn Sopacua||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
The GIS LayerMapping does explicit testing for model fields and has logic to support Foreign keys. However, this does not allow supporting the reverse relationship of foreign keys or to support fields that need some kind of translation or need to be spread across different fields/models (f.e. when a shape file contains compound fields).
The patch provided allows for 'class properties' to be filled by the layermap and contains a test for the concrete use case that prompted this enhancement.