Skip to content

Commit e51543e

Browse files
committed
Python: allow any positional argument in annotate
1 parent 2c855c7 commit e51543e

File tree

1 file changed

+1
-1
lines changed
  • python/ql/src/experimental/semmle/python/frameworks

1 file changed

+1
-1
lines changed

python/ql/src/experimental/semmle/python/frameworks/Django.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ private module Django {
307307

308308
ObjectsAnnotate() {
309309
node.getFunction() = django::db::models::objects_attr("annotate").asCfgNode() and
310-
raw in [node.getArg(0), node.getArgByName(_)] and
310+
raw in [node.getArg(_), node.getArgByName(_)] and
311311
raw.getFunction() = django::db::models::expressions::RawSQL::classRef().asCfgNode()
312312
}
313313

0 commit comments

Comments
 (0)