Opened 14 years ago
Closed 14 years ago
#17307 closed New feature (wontfix)
Admin.site.register() upgrade
| Reported by: | Owned by: | Belegnar | |
|---|---|---|---|
| Component: | contrib.admin | Version: | |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | yes |
| Needs tests: | yes | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
It will be greate if admin.site.register() accepts admin class name along with admin class itself.
Change History (5)
comment:1 by , 14 years ago
| Owner: | changed from to |
|---|
comment:2 by , 14 years ago
| Needs documentation: | set |
|---|---|
| Needs tests: | set |
comment:3 by , 14 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
comment:4 by , 14 years ago
| Resolution: | wontfix |
|---|---|
| Status: | closed → reopened |
It will be usefull for automative model class registration in admin panel with ModelAdmin child.
Now there is no way to get list of classes, declared in current module, but one can get local scope with dir(). But dir() returns only names, not classes.
comment:5 by , 14 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | reopened → closed |
You can use locals() to get all objects in local scope.
Note:
See TracTickets
for help on using tickets.
I disagree, I see no reason for adding this additional complexity.