We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c806a49 commit b4477b6Copy full SHA for b4477b6
.github/workflows/linting.yml
@@ -11,7 +11,7 @@ jobs:
11
runs-on: ubuntu-latest
12
strategy:
13
matrix:
14
- python-version: ["3.12"]
+ python-version: ["3.13"]
15
steps:
16
- name: Checkout repository
17
uses: actions/checkout@v3
promo_code/user/validators.py
@@ -82,7 +82,7 @@ def __call__(self, value):
82
83
if missing_fields:
84
raise rest_framework.serializers.ValidationError(
85
- {field: 'This field is required.' for field in missing_fields},
+ dict.fromkeys(missing_fields, 'This field is required.'),
86
)
87
88
serializer = self.__class__(data=value)
0 commit comments