*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 97b9fafd authored by Moser, Maximilian's avatar Moser, Maximilian
Browse files

Adjust record owner information to new metadata model

* use the new metadata schema for owners in the owner-setting feature
  when creating new records
parent f9e92500
Branches
Tags
No related merge requests found
...@@ -127,7 +127,7 @@ def set_record_owners(record_metadata, owners): ...@@ -127,7 +127,7 @@ def set_record_owners(record_metadata, owners):
"""Set the record's owners, assuming an RDM-Records metadata schema.""" """Set the record's owners, assuming an RDM-Records metadata schema."""
metadata = record_metadata.copy() metadata = record_metadata.copy()
owners = [owner.id for owner in owners] owners = [{"user": owner.id} for owner in owners]
if "access" not in metadata: if "access" not in metadata:
metadata["access"] = {} metadata["access"] = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment