You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implicit mapping would imply that if an API field has the same name than a model field, thus the API field value should be assigned to the model field. It could ease the code maintenance and automatically adapt to the creation of new fields in further Geotrek-admin/API v2 versions.
This functioning should be explained in code comments.
The text was updated successfully, but these errors were encountered:
Fields that have the exact same name in the API results and in Geotrek models are explicitely declared for now, in
env.py
:Implicit mapping would imply that if an API field has the same name than a model field, thus the API field value should be assigned to the model field. It could ease the code maintenance and automatically adapt to the creation of new fields in further Geotrek-admin/API v2 versions.
This functioning should be explained in code comments.
The text was updated successfully, but these errors were encountered: