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 ecf62d8 commit 4f94272Copy full SHA for 4f94272
postgres_composite_types/forms.py
@@ -146,8 +146,10 @@ def clean(self, value):
146
try:
147
cleaned_data[name] = field.clean(value.get(name))
148
except forms.ValidationError as error:
149
- prefix = '%(label)s:' if DJANGO21 \
150
- else '%(label)s: '
+ if DJANGO21:
+ prefix = '%(label)s:'
151
+ else:
152
+ prefix = '%(label)s: '
153
errors.append(prefix_validation_error(
154
error, code='field_invalid',
155
prefix=prefix, params={'label': field.label}))
tox.ini
@@ -1,7 +1,7 @@
1
[tox]
2
skipsdist = True
3
envlist =
4
- py{35,36}-dj{1.11,2.0, 2.1}
+ py{35,36}-dj{1.11,2.0,2.1}
5
pycodestyle,isort,pylint
6
7
[testenv]
0 commit comments