From bb566cce2003404c1bc83d1e8c87f4b7197a0c9f Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 17 Sep 2020 19:36:35 -0700 Subject: web toml editing: remove sub-entities from TOML --- python/fatcat_web/forms.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/fatcat_web/forms.py b/python/fatcat_web/forms.py index ff885fcb..1c9fb199 100644 --- a/python/fatcat_web/forms.py +++ b/python/fatcat_web/forms.py @@ -476,5 +476,9 @@ class EntityTomlForm(EntityEditForm): pop_fields = ['ident', 'state', 'revision', 'redirect'] else: pop_fields = ['ident', 'state'] + + # remove "expand" fields + pop_fields += ['releases', 'container', 'work', 'creators', 'files', 'filesets', 'webcaptures'] + etf.toml.data = entity_to_toml(entity, pop_fields=pop_fields) return etf -- cgit v1.2.3