2 bug fixes in editor views
authorĎÚβĨŐÚŚ Dod <thedod@protonmail.ch>
Tue, 26 Jun 2018 13:28:29 +0000 (09:28 -0400)
committerMichael McMahon <michael@fsf.org>
Wed, 6 May 2020 20:16:11 +0000 (16:16 -0400)
commit8138cae381e231a4c620f0a4d49f235fe628f825
treeb03570fd8ca4499a3e3596fc06aa5f82006d483e
parentd224eea9ac643de424ff94c67d599f2024fea0dd
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).
mediagoblin/edit/views.py