Skip to content

Commit a8691c3

Browse files
committed
1 parent f20481e commit a8691c3

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
runs-on: ubuntu-20.04
1313

1414
strategy:
15+
fail-fast: false
1516
matrix:
1617
python-version:
1718
- '3.6'

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717

18-
- uses: actions/setup-python@v4
18+
- uses: actions/setup-python@v5
1919
with:
20-
python-version: "3.10"
20+
python-version: "3.x"
2121

2222
- uses: pre-commit/[email protected]
2323
with:

rest_framework/fields.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,9 @@ def __init__(self, protocol='both', **kwargs):
866866
self.protocol = protocol.lower()
867867
self.unpack_ipv4 = (self.protocol == 'both')
868868
super().__init__(**kwargs)
869-
validators, error_message = ip_address_validators(protocol, self.unpack_ipv4)
869+
validators = ip_address_validators(protocol, self.unpack_ipv4)
870+
if len(validators) == 2: # encode/django-rest-framework#9180
871+
validators = validators[0]
870872
self.validators.extend(validators)
871873

872874
def to_internal_value(self, data):

0 commit comments

Comments
 (0)