Allow providing keyword arguments for forms in UpdateFormMixin.

Review Request #10030 — Created June 20, 2018 and submitted — Latest diff uploaded

Information

Djblets
release-1.0.x
101a81f...

Reviewers

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.

    Loading...