Opened 10 years ago

Last modified 6 years ago

#23976 closed Cleanup/optimization

ValidationError by list argument — at Version 1

Reported by: archivarius888 Owned by: nobody
Component: Core (Other) Version: dev
Severity: Normal Keywords: exceptions, ValidationError
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by archivarius888)

Redefinition variable message by django/django/core/exceptions.py
line 114, for message in message:

below line, 116:

                if not isinstance(message, ValidationError):
                    message = ValidationError(message)
                self.error_list.extend(message.error_list)

if message isinstance of dict: AttributeError: 'ValidationError' object has no attribute 'error_list'

Change History (1)

comment:1 by archivarius888, 10 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top