From e3cbe8c2a0d4173c4552f99eb929f380b2b153b3 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 14 Jun 2019 10:53:51 -0700 Subject: include _metadata in editgroup views also --- python/fatcat_web/routes.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py index fd948262..02808577 100644 --- a/python/fatcat_web/routes.py +++ b/python/fatcat_web/routes.py @@ -219,6 +219,10 @@ def generic_editgroup_entity_view(editgroup_id, entity_type, ident, view_templat return render_template('deleted_entity.html', entity=entity, entity_type=entity_type, editgroup=editgroup) + metadata = entity.to_dict() + metadata.pop('extra') + entity._metadata = metadata + return render_template(view_template, entity_type=entity_type, entity=entity, editgroup=editgroup) -- cgit v1.2.3