summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-09-17 19:36:35 -0700
committerBryan Newbold <bnewbold@robocracy.org>2020-09-17 19:36:35 -0700
commitbb566cce2003404c1bc83d1e8c87f4b7197a0c9f (patch)
tree6ef1f3eb3f81940d79b1aea3c9ba28965de43c77 /python/fatcat_web
parent4365f7d61b8458c06102e4cb58fd373bbada872a (diff)
downloadfatcat-bb566cce2003404c1bc83d1e8c87f4b7197a0c9f.tar.gz
fatcat-bb566cce2003404c1bc83d1e8c87f4b7197a0c9f.zip
web toml editing: remove sub-entities from TOML
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/forms.py4
1 files changed, 4 insertions, 0 deletions
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