File tree 2 files changed +30
-31
lines changed
2 files changed +30
-31
lines changed Original file line number Diff line number Diff line change 1
1
name : Test
2
2
3
3
on :
4
- push :
5
- branches :
6
- - main
7
- pull_request :
8
- branches :
9
- - main
10
- schedule :
11
- - cron : " 0 0 * * *"
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+ schedule :
11
+ - cron : " 0 0 * * *"
12
12
13
13
jobs :
14
- source :
15
- runs-on : ubuntu-latest
16
- strategy :
17
- matrix :
18
- python-version : ["3.8", "3.9", "3.10"]
19
- steps :
20
- - uses : actions/checkout@v3
21
- - uses : nanasess/setup-chromedriver@master
22
- - uses : actions/setup-node@v3
23
- with :
24
- node-version : " 14"
25
- - name : Use Python ${{ matrix.python-version }}
26
- uses : actions/setup-python@v4
27
- with :
28
- python-version : ${{ matrix.python-version }}
29
- - name : Install Python Dependencies
30
- run : pip install -r requirements/test-run.txt
31
- - name : Run Tests
32
- run : |
33
- npm install -g npm@latest
34
- npm --version
35
- nox -s test
14
+ source :
15
+ runs-on : ubuntu-latest
16
+ strategy :
17
+ matrix :
18
+ python-version : ["3.8", "3.9", "3.10"]
19
+ steps :
20
+ - uses : actions/checkout@v3
21
+ - uses : actions/setup-node@v3
22
+ with :
23
+ node-version : " 14.x"
24
+ - name : Use Python ${{ matrix.python-version }}
25
+ uses : actions/setup-python@v4
26
+ with :
27
+ python-version : ${{ matrix.python-version }}
28
+ - name : Install Python Dependencies
29
+ run : pip install -r requirements/test-run.txt
30
+ - name : Run Tests
31
+ run : |
32
+ npm install -g npm@latest
33
+ npm --version
34
+ nox -s test
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ def django_query_postprocessor(
264
264
# Force the query to execute
265
265
getattr (data , field .name , None )
266
266
267
- if many_to_one and type (field ) == ManyToOneRel :
267
+ if many_to_one and type (field ) == ManyToOneRel : # noqa: #E721
268
268
prefetch_fields .append (field .related_name or f"{ field .name } _set" )
269
269
270
270
elif many_to_many and isinstance (field , ManyToManyField ):
You can’t perform that action at this time.
0 commit comments