Hi all, i'am write a system with follow Serializer:
https://pastebin.com/1gNwRhCE My custom validate method is not called. After 1 hour of debugging of file rest_framework/serializers.py (see follow) https://github.com/encode/django-rest-framework/blob/master/rest_framework/serializers.py 477 ret = OrderedDict() 478 errors = OrderedDict() 479 fields = self._writable_fields 480 481 for field in fields: 482 validate_method = getattr(self, 'validate_' + field.field_name, None) 483 primitive_value = field.get_value(data) 484 try: 485 validated_value = field.run_validation(primitive_value) 486 if validate_method is not None: 487 validated_value = validate_method(validated_value) i think this is a bug the line 485 and 486 are inverted. The custom validate_method will not called, because the call at line 485 raise always exception. Anyone can help me? -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/1fdd4c5f-bc81-4ef2-a164-75e98a8f2ce4n%40googlegroups.com.