mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Python: allow any positional argument in annotate
This commit is contained in:
@@ -307,7 +307,7 @@ private module Django {
|
||||
|
||||
ObjectsAnnotate() {
|
||||
node.getFunction() = django::db::models::objects_attr("annotate").asCfgNode() and
|
||||
raw in [node.getArg(0), node.getArgByName(_)] and
|
||||
raw in [node.getArg(_), node.getArgByName(_)] and
|
||||
raw.getFunction() = django::db::models::expressions::RawSQL::classRef().asCfgNode()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user