mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
Merge pull request #2858 from RasmusWL/python-support-django2
Approved by tausbn
This commit is contained in:
@@ -2,5 +2,6 @@
|
||||
def url(regex, view, kwargs=None, name=None):
|
||||
pass
|
||||
|
||||
|
||||
def patterns(*urls):
|
||||
pass
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
# see https://docs.djangoproject.com/en/1.11/_modules/django/shortcuts/#redirect
|
||||
# https://github.com/django/django/blob/86908785076b2bbc31b908781da6b6ad1779b18b/django/shortcuts.py
|
||||
|
||||
def render(request, template_name, context=None, content_type=None, status=None, using=None):
|
||||
pass
|
||||
|
||||
def redirect(to, *args, **kwargs):
|
||||
pass
|
||||
7
python/ql/test/query-tests/Security/lib/django/urls.py
Normal file
7
python/ql/test/query-tests/Security/lib/django/urls.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from functools import partial
|
||||
|
||||
def _path(route, view, kwargs=None, name=None, Pattern=None):
|
||||
pass
|
||||
|
||||
path = partial(_path, Pattern='RoutePattern (but this is a mock)')
|
||||
re_path = partial(_path, Pattern='RegexPattern (but this is a mock)')
|
||||
@@ -0,0 +1,3 @@
|
||||
# For django 2.x and 3.x
|
||||
class View:
|
||||
pass
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
# For django 1.x
|
||||
class View:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user