Opened 11 years ago
Last modified 7 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 )
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'
Note:
See TracTickets
for help on using tickets.