Closed stevenbal closed 1 week ago
Might be because the Onderwerpobject resource has both klantcontact
and was_klantcontact
fields. I'm not sure what the difference between them is @bart-maykin do you know more about this?
if you look at the model (https://vng-realisatie.github.io/klantinteracties/informatiemodel/semantisch_model) it shows 2 relations:
wasKlantcontact: OnderwerpObject-was->Klantcontact klantcontact: Klantcontact-(gingover->OnderwerpObject
So, we need to make sure the admin shows the proper one (or the API?)
The current behaviour in the admin:
was_klantcontact
can be added in-line that creates an OnderwerpObject
with the current klantcontact being the was_klantcontact
value and requiring the other klantcontact
field to be setklantcontact
OnderwerpObject is not shown at all in the klantcontact adminThe above API example is shows that wasKlantcontact is None and thus is not related to any admin klantcontact.
Product versie / Product version
latest
Omschrijf het probleem / Describe the bug
Onderwerpobjecten do not show up in the inline of the Klantcontact admin, despite existing in the API
Stappen om te reproduceren / Steps to reproduce
/admin/klantinteracties/klantcontact
and click on the newly created KlantcontactVerwacht gedrag / Expected behavior
The admin should show the related onderwerpobjecten