Allow providing keyword arguments for forms in UpdateFormMixin.

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

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.

david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-1.0.x (4b954c4)