mirror of https://github.com/astral-sh/ruff
Fix example for S611 (#16316)
## Summary * Existing example did not include RawSQL() call like it should * Also clarify the example a bit to make it clearer that the code is not secure ## Test Plan N/A, only documentation updated
This commit is contained in:
parent
64effa4aea
commit
aa88f2dbe5
|
|
@ -18,7 +18,7 @@ use crate::checkers::ast::Checker;
|
||||||
/// from django.db.models.expressions import RawSQL
|
/// from django.db.models.expressions import RawSQL
|
||||||
/// from django.contrib.auth.models import User
|
/// from django.contrib.auth.models import User
|
||||||
///
|
///
|
||||||
/// User.objects.annotate(val=("%secure" % "nos", []))
|
/// User.objects.annotate(val=RawSQL("%s" % input_param, []))
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// ## References
|
/// ## References
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue