diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-06-14 10:53:51 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-06-14 10:53:51 -0700 |
commit | e3cbe8c2a0d4173c4552f99eb929f380b2b153b3 (patch) | |
tree | 00db221eaede52a4cfd0001b875a931453f7f5ae | |
parent | 0158e2edc964f8151f91c17454fa160426343475 (diff) | |
download | fatcat-e3cbe8c2a0d4173c4552f99eb929f380b2b153b3.tar.gz fatcat-e3cbe8c2a0d4173c4552f99eb929f380b2b153b3.zip |
include _metadata in editgroup views also
-rw-r--r-- | python/fatcat_web/routes.py | 4 |
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) |