flake8
passed.
JSHint
passed.
Review Request #10030 — Created June 20, 2018 and submitted
djblets.webapi.forms.UpdateFormMixin
makes 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_kwargs
parameter. 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.