#31219: PROTECT may crash in some situations
-------------------------------------+-------------------------------------
Reporter: Matthias | Owner: nobody
Kestenholz |
Type: Bug | Status: new
Component: Database | Version: master
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
{{{
======================================================================
ERROR: test_protect_via (delete.tests.OnDeleteTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib/python3.6/unittest/case.py", line 605, in run
testMethod()
File "/home/matthias/Projects/django/tests/delete/tests.py", line 99, in
test_protect_via
p.delete()
File "/home/matthias/Projects/django/django/db/models/base.py", line
941, in delete
collector.collect([self], keep_parents=keep_parents)
File "/home/matthias/Projects/django/django/db/models/deletion.py", line
300, in collect
error.protected_objects[0].__class__.__name__,
TypeError: 'itertools.chain' object is not subscriptable
}}}
Pull request follows.
--
Ticket URL: <https://code.djangoproject.com/ticket/31219>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.3ad55725ae9bb2e5bc20ff0905780674%40djangoproject.com.