mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
Update python/ql/src/experimental/semmle/python/frameworks/Django.qll
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user