mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: Add example of QuerySet chain (django)
This commit is contained in:
@@ -27,3 +27,6 @@ def test_model():
|
||||
|
||||
raw = RawSQL("so raw")
|
||||
User.objects.annotate(val=raw) # $getSql="so raw"
|
||||
|
||||
# chaining QuerySet calls
|
||||
User.objects.using("db-name").exclude(username="admin").extra("some sql") # $ MISSING: getSql="some sql"
|
||||
|
||||
Reference in New Issue
Block a user