Allow providing keyword arguments for forms in UpdateFormMixin.
Review Request #10030 — Created June 20, 2018 and submitted
djblets.webapi.forms.UpdateFormMixinmakes it easier for API resources
to work with forms for any updates, but it previously hard-coded the
construction for a form, preventing any additional arguments to be
passed to the constructor.
This change adds the ability to customize construction by providing a
form_kwargsparameter. This is passed both to the add and update
forms. By default, this is an empty dictionary, keeping existing
behavior the same.
Unit tests in Djblets and Review Board pass.