aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-06-14 10:53:51 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-06-14 10:53:51 -0700
commite3cbe8c2a0d4173c4552f99eb929f380b2b153b3 (patch)
tree00db221eaede52a4cfd0001b875a931453f7f5ae /python
parent0158e2edc964f8151f91c17454fa160426343475 (diff)
downloadfatcat-e3cbe8c2a0d4173c4552f99eb929f380b2b153b3.tar.gz
fatcat-e3cbe8c2a0d4173c4552f99eb929f380b2b153b3.zip
include _metadata in editgroup views also
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_web/routes.py4
1 files changed, 4 insertions, 0 deletions
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)