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

Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
yoff
2020-10-20 21:43:15 +02:00
committed by GitHub
parent 5990241c8f
commit 01845d1278

View File

@@ -146,7 +146,7 @@ private module Django {
ClassModelSubclass() { node.getId() = any(ClassModelSubclassDef cd).getName() }
}
/** Gets a reference to the `objects` object of a model. */
/** Gets a reference to the `objects` object of a django model. */
private DataFlow::Node objects(DataFlow::TypeTracker t) {
t.startInAttr("objects") and
result instanceof ClassModelSubclass