Skip to content

Commit 4831998

Browse files
authored
Merge pull request github#5793 from RasmusWL/fix-qldoc
Python: Minor fix to Django RawSQL QLDoc
2 parents bb1cb73 + baa9263 commit 4831998

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,7 @@ private module PrivateDjango {
386386
/** Provides models for the `django.db.models.expressions.RawSQL` class. */
387387
module RawSQL {
388388
/**
389-
* Gets an instance of the `django.db.models.expressions.RawSQL` class,
390-
* that was initiated with the SQL represented by `sql`.
389+
* Gets an reference to the `django.db.models.expressions.RawSQL` class.
391390
*/
392391
API::Node classRef() {
393392
result = expressions().getMember("RawSQL")
@@ -396,7 +395,10 @@ private module PrivateDjango {
396395
result = models().getMember("RawSQL")
397396
}
398397

399-
/** Gets an instance of the `django.db.models.expressions.RawSQL` class. */
398+
/**
399+
* Gets an instance of the `django.db.models.expressions.RawSQL` class,
400+
* that was initiated with the SQL represented by `sql`.
401+
*/
400402
private DataFlow::LocalSourceNode instance(DataFlow::TypeTracker t, ControlFlowNode sql) {
401403
t.start() and
402404
exists(DataFlow::CallCfgNode c | result = c |

0 commit comments

Comments
 (0)