Skip to content

Commit bacbe51

Browse files
committed
Metadata: fix group handling
1 parent e7b8045 commit bacbe51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geonode/metadata/handlers/group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def get_jsonschema_instance(self, resource, field_name, context, errors, lang=No
6666
)
6767

6868
def update_resource(self, resource, field_name, json_instance, context, errors, **kwargs):
69-
data = json_instance[field_name]
69+
data = json_instance.get(field_name, None)
7070
id = data.get("id", None) if data else None
7171
if id is not None:
7272
gp = GroupProfile.objects.get(pk=id)

0 commit comments

Comments
 (0)