Skip to content

Commit 701b935

Browse files
committed
Python: Add example of QuerySet chain (django)
1 parent c6a69e1 commit 701b935

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/ql/test/library-tests/frameworks/django/SqlExecution.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ def test_model():
2727

2828
raw = RawSQL("so raw")
2929
User.objects.annotate(val=raw) # $getSql="so raw"
30+
31+
# chaining QuerySet calls
32+
User.objects.using("db-name").exclude(username="admin").extra("some sql") # $ MISSING: getSql="some sql"

0 commit comments

Comments
 (0)