mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-09-17 01:32:30 +03:00
Merge branch 'encode:master' into django-rest-framework-guardian2
This commit is contained in:
commit
767481c601
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -24,7 +24,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: actions/setup-python@v3
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
|
|
|
@ -271,7 +271,6 @@ A validator may be any callable that raises a `serializers.ValidationError` on f
|
||||||
def even_number(value):
|
def even_number(value):
|
||||||
if value % 2 != 0:
|
if value % 2 != 0:
|
||||||
raise serializers.ValidationError('This field must be an even number.')
|
raise serializers.ValidationError('This field must be an even number.')
|
||||||
return value
|
|
||||||
|
|
||||||
#### Field-level validation
|
#### Field-level validation
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Optional packages which may be used with REST framework.
|
# Optional packages which may be used with REST framework.
|
||||||
coreapi==2.3.1
|
coreapi==2.3.1
|
||||||
coreschema==0.0.4
|
coreschema==0.0.4
|
||||||
django-filter>=2.4.0,<3.0
|
django-filter
|
||||||
django-guardian>=2.4.0,<2.5
|
django-guardian>=2.4.0,<2.5
|
||||||
inflection==0.5.1
|
inflection==0.5.1
|
||||||
markdown==3.3
|
markdown==3.3
|
||||||
|
|
|
@ -5,4 +5,4 @@ wheel>=0.35.1,<0.36
|
||||||
twine>=3.2.0,<3.3
|
twine>=3.2.0,<3.3
|
||||||
|
|
||||||
# Transifex client for managing translation resources.
|
# Transifex client for managing translation resources.
|
||||||
transifex-client>=0.13.12,<0.14
|
transifex-client
|
||||||
|
|
|
@ -3,3 +3,5 @@ pytest>=6.2.0,<8.0
|
||||||
pytest-cov>=4.0.0,<5.0
|
pytest-cov>=4.0.0,<5.0
|
||||||
pytest-django>=4.5.2,<5.0
|
pytest-django>=4.5.2,<5.0
|
||||||
importlib-metadata<5.0
|
importlib-metadata<5.0
|
||||||
|
# temporary pin of attrs
|
||||||
|
attrs==22.1.0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user