changeset 4949:afc5b51bba18

gists: use allow_extra_fields and filter_extra_fields in gist forms like in most other forms
author Mads Kiilerich <madski@unity3d.com>
date Tue, 31 Mar 2015 01:17:37 +0200
parents 98a02b20c751
children 85ff6389b434
files kallithea/model/forms.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/model/forms.py	Tue Mar 31 01:16:53 2015 +0200
+++ b/kallithea/model/forms.py	Tue Mar 31 01:17:37 2015 +0200
@@ -512,6 +512,8 @@
 
 def GistForm(lifetime_options):
     class _GistForm(formencode.Schema):
+        allow_extra_fields = True
+        filter_extra_fields = True
 
         filename = All(v.BasePath()(),
                        v.UnicodeString(strip=True, required=False))