# Support for GET and PUT

* adds full external identifier support for GET and PUT methods on EIV, KOM, EMA and OEK
This commit is contained in:
2026-05-10 10:54:48 +02:00
parent b721e9c51c
commit 3ae0dc0cc1
6 changed files with 25 additions and 19 deletions

View File

@@ -149,7 +149,7 @@ class EcoAccountAPISerializerV1(AbstractModelAPISerializerV1,
obj = self._set_compensation_states(obj, properties["after_states"], obj.after_states)
obj = self._set_deadlines(obj, properties["deadlines"])
self._set_external_identifier(obj, properties.get("external_identifier", None))
self._set_external_identifier(obj.id, properties.get("external_identifier", None), obj.created)
obj.log.add(obj.created)
obj.users.add(user)
@@ -199,7 +199,7 @@ class EcoAccountAPISerializerV1(AbstractModelAPISerializerV1,
obj = self._set_compensation_states(obj, properties["after_states"], obj.after_states)
obj = self._set_deadlines(obj, properties["deadlines"])
self._set_external_identifier(obj, external_identifier)
self._set_external_identifier(obj.id, external_identifier, update_action)
obj.log.add(update_action)
celery_update_parcels.delay(obj.geometry.id)