Opened 18 years ago
Closed 17 years ago
#4524 closed (worksforme)
'Delete' action is broken in newforms-admin
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | contrib.admin | Version: | newforms-admin |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Any 'delete' operation in newadmin-branch (r5457) results in
Request Method: GET Request URL: http://localhost:8001/admin/sites/site/2/delete/ Exception Type: NameError Exception Value: global name '_get_deleted_objects' is not defined Exception Location: /home/mag/WORK/django-newforms-admin/django/contrib/admin/options.py in delete_view, line 531
How to reproduce:
- Create new empty project,
- Enable django.contrib.admin,
- Navigate to admin interface,
- Try to delete any object.
Change History (10)
comment:1 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 18 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Reopen: bug still present in newforms-admin branch.
Workaround is not a justification.
comment:3 by , 17 years ago
Resolution: | → duplicate |
---|---|
Status: | reopened → closed |
comment:4 by , 17 years ago
Resolution: | duplicate |
---|---|
Status: | closed → reopened |
What ticket number is this a duplicate of? I don't see another ticket for this issue (which is actually a pretty critical bug).
comment:5 by , 17 years ago
Triage Stage: | Unreviewed → Accepted |
---|
Hmmm.. Please don't do anonymous triage.
comment:6 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
comment:7 by , 17 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I'm still getting this with newforms-admin 0.97-newforms-admin-SVN-6454
comment:8 by , 17 years ago
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
Works for me with: Django version 0.97-newforms-admin-SVN-6522
I tried both a simple delete and cascading one, both worked fine.
comment:9 by , 17 years ago
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
Still getting it in 6525
This error seems pretty clear:
/usr/lib/python2.5/site-packages/django/contrib/admin/options.py in delete_view
line 659 reads:
from django.contrib.admin.views.main import _get_deleted_objects
there is no function _get_deleted_objects in django.contrib.admin.views.main
comment:10 by , 17 years ago
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
nevermind, I had modified my copy of options.py per the instructions in the first comment. sorry!
I found a quick way to fix this, just import the name
_get_deleted_objects
from moduledjango.contrib.admin.views
before you use it.e.t. change the line where this exception occured to: