diff options
author | ĎÚβĨŐÚŚ Dod <thedod@protonmail.ch> | 2018-06-26 09:28:29 -0400 |
---|---|---|
committer | Boris Bobrov <breton@cynicmansion.ru> | 2018-06-28 22:54:06 +0200 |
commit | 3dfc8c9b4baff65f68e902adaa55a7f7b44c4e79 (patch) | |
tree | 2b27ed7a7e462acd8bb8446a5ca43468a079db23 /mediagoblin/tools/files.py | |
parent | f1e79d68e1d1baf26640f15443ee9b4527251c69 (diff) | |
download | mediagoblin-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 'mediagoblin/tools/files.py')
0 files changed, 0 insertions, 0 deletions