Ensure form registry is populated when adding or removing forms to pages
Review Request #8725 — Created Feb. 8, 2017 and submitted
The
ConfigPageRegistry
was not populating theConfigPageFormRegistry
when callingadd_form_to_page
orremove_form_from_page
, which would
lead to issues when removing pages in tbe case that the method
was called before the registry was populated. We now specifically
populate the form registry to avoid this.
Ran unit tests. The new unit tests fail without this fix applied.
- Change Summary:
-
Add unit tests.
- Testing Done:
-
~ Ran unit tests.
~ Ran unit tests. The new unit tests fail without this fix applied.
-
Tool: PEP8 Style Checker Processed Files: djblets/configforms/registry.py Tool: Pyflakes Processed Files: djblets/configforms/registry.py