Skip to content

Commit

Permalink
Fix example for S611 (#16316)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
aripollak authored Feb 22, 2025
1 parent 64effa4 commit aa88f2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use crate::checkers::ast::Checker;
/// from django.db.models.expressions import RawSQL
/// from django.contrib.auth.models import User
///
/// User.objects.annotate(val=("%secure" % "nos", []))
/// User.objects.annotate(val=RawSQL("%s" % input_param, []))
/// ```
///
/// ## References
Expand Down

0 comments on commit aa88f2d

Please sign in to comment.