Python: allow any positional argument in annotate

This commit is contained in:
Rasmus Lerchedahl Petersen
2020-10-21 13:17:20 +02:00
parent 2c855c739b
commit e51543ea79

View File

@@ -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()
}