Skip to content

Commit be185c6

Browse files
author
Mickaël Guérin
committed
Ensure compatibility with older DRF versions (< 3.5)
1 parent 0395ad1 commit be185c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

formidable/serializers/list.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def validate(self, data):
6363
msg = 'The fields {field_id} must make a unique set.'.format(
6464
field_id=self.field_id
6565
)
66-
raise ValidationError(msg, code='unique')
66+
raise ValidationError(msg)
6767

6868
return data
6969

0 commit comments

Comments
 (0)