Opened 15 years ago
Closed 15 years ago
#14425 closed (fixed)
Unused imports in contrib.admin
| Reported by: | Rob Hudson | Owned by: | Chris Beaven |
|---|---|---|---|
| Component: | contrib.admin | Version: | 1.2 |
| Severity: | Keywords: | ||
| Cc: | Chris Long | 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
Attached is a patch which removes unused imports in all contrib.admin files. The tests continue to pass.
Attachments (1)
Change History (6)
by , 15 years ago
| Attachment: | admin_imports.diff added |
|---|
comment:1 by , 15 years ago
| Component: | Uncategorized → django.contrib.admin |
|---|---|
| Has patch: | set |
| Owner: | changed from to |
| Status: | new → assigned |
| Triage Stage: | Unreviewed → Ready for checkin |
comment:2 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:3 by , 15 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
This change breaks the example given in the admin actions documentation: http://docs.djangoproject.com/en/dev/ref/contrib/admin/actions/, specifically this line: selected = request.POST.getlist(admin.ACTION_CHECKBOX_NAME)
Should either add the line back to init.py: from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME
Or change the documentation.
comment:4 by , 15 years ago
| Cc: | added |
|---|
comment:5 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
Thanks clong, reverted in [14359].
(In [14175]) Fixed #14425 -- Unused imports in contrib.admin. Thanks robhudson.