File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
python/ql/lib/semmle/python/frameworks Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -638,7 +638,7 @@ module PrivateDjango {
638
638
639
639
/**
640
640
* A method call on a query-set or manager that returns a collection
641
- * containing instances of a django models .
641
+ * containing instances of a django model .
642
642
*/
643
643
class QuerySetMethodInstanceCollection extends DataFlow:: CallCfgNode {
644
644
API:: Node modelClass ;
@@ -674,7 +674,9 @@ module PrivateDjango {
674
674
//
675
675
// but for now, we just model a store step directly from the synthetic
676
676
// node to the method call.
677
- // extra method on query-set/manager that does _not_ return a query-set
677
+ //
678
+ // extra method on query-set/manager that does _not_ return a query-set,
679
+ // but a collection of instances.
678
680
modelClass = subclassRef ( ) and
679
681
methodName in [ "iterator" , "bulk_create" ] and
680
682
this = [ manager ( modelClass ) , querySet ( modelClass ) ] .getMember ( methodName ) .getACall ( )
You can’t perform that action at this time.
0 commit comments