Opened 5 years ago
Last modified 5 years ago
#32107 closed Bug
ProtectedError/RestrictedError raised from Collector.collect has iterator as protected_objects/restricted_objects — at Version 1
| Reported by: | Kwist | Owned by: | nobody |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | 3.1 |
| Severity: | Release blocker | Keywords: | database delete ProtectedError RestrictedError |
| Cc: | Hasan Ramezani | Triage Stage: | Ready for checkin |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
("Cannot delete some instances of model 'A' because they are referenced through protected foreign keys: 'A.protect', 'B.protect'.", <itertools.chain object at 0x7f96b5cb6c40>)
As a result, the repr of exception in Sentry is not informative.
Change History (2)
by , 5 years ago
| Attachment: | objects.patch added |
|---|
comment:1 by , 5 years ago
| Description: | modified (diff) |
|---|---|
| Summary: | repr of ProtectedError/RestrictedError raised from Collector.collect is not fully informative → ProtectedError/RestrictedError raised from Collector.collect has iterator as protected_objects/restricted_objects |
Note:
See TracTickets
for help on using tickets.
Patch