django-multi-form-view
django-multi-form-view copied to clipboard
Get context data from superclass
Original implementation did not call super().get_context_data so extra context data from superclasses and other mix-ins was lost. This appeared to be in order to avoid the issue of the regular FormView class trying to get a singular form class since MultiFormView was subclassed from it, but this can be avoided by setting the "form" field in kwargs to None if it's not present instead. This keeps the extra context data intact and conforms to other Django context mix-in classes.
Codecov Report
Merging #12 into master will not change coverage. The diff coverage is
75%.
@@ Coverage Diff @@
## master #12 +/- ##
=======================================
Coverage 97.26% 97.26%
=======================================
Files 18 18
Lines 293 293
=======================================
Hits 285 285
Misses 8 8
| Impacted Files | Coverage Δ | |
|---|---|---|
| multi_form_view/base.py | 87.5% <75%> (ø) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update d7f0a34...8e9e1dc. Read the comment docs.