Ran
|
Files
932
|
Run time
17s
|
Badge
Embed ▾
README BADGES
|
push
github
feat(mfa): allow overriding form of `GenerateRecoveryCodesView` Squashed commit of the following: commit b6c6d3f4e Author: Eyal Cherevatsky <eyal.ch@icloud.com> Date: Fri Jun 21 21:25:14 2024 +0300 feat(mfa): allow overriding form of `GenerateRecoveryCodesView` Even though `GenerateRecoveryCodesForm` has no fields, one possible use case for overriding it is setting the [`default_renderer`](https://docs.djangoproject.com/en/5.0/ref/forms/api/#django.forms.Form.default_renderer) property. Additionally, these changes make `GenerateRecoveryCodesView` more consistent with other views that override `form_class`. Currently, `GenerateRecoveryCodesView` is the only view that overrides `form_class` _without_ overriding `get_form_class` (and thus making the form configurable).
20053 of 20936 relevant lines covered (95.78%)
0.96 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|