aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/pluginwriter
diff options
context:
space:
mode:
authorĎÚβĨŐÚŚ Dod <thedod@protonmail.ch>2018-06-26 09:28:29 -0400
committerBoris Bobrov <breton@cynicmansion.ru>2018-06-28 22:54:06 +0200
commit3dfc8c9b4baff65f68e902adaa55a7f7b44c4e79 (patch)
tree2b27ed7a7e462acd8bb8446a5ca43468a079db23 /docs/source/pluginwriter
parentf1e79d68e1d1baf26640f15443ee9b4527251c69 (diff)
downloadmediagoblin-3dfc8c9b4baff65f68e902adaa55a7f7b44c4e79.tar.lz
mediagoblin-3dfc8c9b4baff65f68e902adaa55a7f7b44c4e79.tar.xz
mediagoblin-3dfc8c9b4baff65f68e902adaa55a7f7b44c4e79.zip
2 bug fixes in editor views
* `WTForms` instances get `__init__`-ed with `defaults` as `kwargs`. The first arg is a `request.form` (which is what one must supply if this is a `POST` and must *not* supply otherwise). The content of that form (empty on `GET`) has higher priority than the defaults (which makes the user get an empty form). * Fix `edit_profile()` to allow changing `location` from a non-blank value to blank (i.e. removing the location). (cherry picked from commit 75f3e23b92392b9bd309fab4c1a52fd38d453627)
Diffstat (limited to 'docs/source/pluginwriter')
0 files changed, 0 insertions, 0 deletions