QutEcoacoustics / baw-server

The acoustic workbench server for storing and managing ecoacoustic data. Manages the structure and audio data. Provides an API for clients access.
Apache License 2.0
9 stars 4 forks source link

API responses returned from create requests do not return custom fields #691

Open atruskie opened 2 weeks ago

atruskie commented 2 weeks ago

For a resource just created with POST /resource we return the created record but none of the AREL based virtual custom_fields2 definitions are included.

That's because we use a simple (and undecorated by our magic/helpers0 model.save call to persist and load the new object to the database.

We need to find a better way to either: