Skip to content

Commit eb9b324

Browse files
committed
Add support for ModelViewSet functions
1 parent dbecb1b commit eb9b324

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/ql/lib/semmle/python/frameworks/RestFramework.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@ private module RestFramework {
131131
"initial", "http_method_not_allowed", "permission_denied", "throttled",
132132
"get_authenticate_header", "perform_content_negotiation", "perform_authentication",
133133
"check_permissions", "check_object_permissions", "check_throttles", "determine_version",
134-
"initialize_request", "finalize_response", "dispatch", "options"
134+
"initialize_request", "finalize_response", "dispatch", "options",
135+
// ModelViewSet
136+
// https://github.com/encode/django-rest-framework/blob/master/rest_framework/viewsets.py
137+
"create", "retrieve", "update", "partial_update", "destroy", "list"
135138
]
136139
}
137140
}

0 commit comments

Comments
 (0)