Module

contracts.rules_csrf_forms

CSRF-related template checks.

Functions

check_csrf_form_tokens 2 list[ContractIssue]
Warn when CSRFMiddleware is active but a static mutating form lacks a token.
def check_csrf_form_tokens(template_sources: dict[str, str], middleware_list: list[Any]) -> list[ContractIssue]
Parameters
Name Type Description
template_sources dict[str, str]
middleware_list list[Any]
Returns
list[ContractIssue]