Skip to content

Commit

Permalink
Metadata: fix group handling
Browse files Browse the repository at this point in the history
  • Loading branch information
etj committed Dec 20, 2024
1 parent e7b8045 commit bacbe51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geonode/metadata/handlers/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def get_jsonschema_instance(self, resource, field_name, context, errors, lang=No
)

def update_resource(self, resource, field_name, json_instance, context, errors, **kwargs):
data = json_instance[field_name]
data = json_instance.get(field_name, None)
id = data.get("id", None) if data else None
if id is not None:
gp = GroupProfile.objects.get(pk=id)
Expand Down

0 comments on commit bacbe51

Please sign in to comment.