Opened 16 years ago
Last modified 4 weeks ago
#12090 assigned New feature
Show admin actions on the edit pages too
| Reported by: | Florian Apolloner | Owned by: | Marcelo Galigniana |
|---|---|---|---|
| Component: | contrib.admin | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Jannis Leidel, Carl Meyer, jgmize, Florian Apolloner, Andy Miller | Triage Stage: | Accepted |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Currently the workflow for comment moderation might look like this (without knowing the comment moderation admin actions ;)):
- Look at the overview page
- If in doubt open the comment in a new page
- if it's spam go back to the previous page, select it and execute the admin action
We could redisplay the admin actions box in the detail views (where they of course would only effect the current object) to prevent the unneeded roundtrip.
Attachments (1)
Change History (45)
comment:1 by , 16 years ago
| Cc: | added |
|---|
comment:2 by , 16 years ago
| Cc: | added |
|---|
comment:3 by , 16 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:4 by , 16 years ago
See: http://groups.google.com/group/django-developers/browse_thread/thread/3fee283ae3695352 for the discussion.
comment:5 by , 16 years ago
| Triage Stage: | Unreviewed → Design decision needed |
|---|
comment:6 by , 16 years ago
| Triage Stage: | Design decision needed → Accepted |
|---|
comment:7 by , 16 years ago
Is it possible to give a short input on this ticket? I'd prefer to have a button like "save", "save and add", "save and edit" istead of a drop down list to select the button. Perhaps it possible to make that selectable.
What do you think about that?
comment:8 by , 15 years ago
Regarding the design issue let me propose to allow for a list of actions that are offered as individual buttons on the change page next to 'Save', 'Save and add another': 'Save and /action/', e.g. via:
class ArticleAdmin(admin.ModelAdmin):
list_display = ['title', 'status']
actions = [publish, unpublish, comments_close]
save_plus_action = [unpublish, comments_close]
save_plus_action_done = [publish]
As it's unclear whether the list or change page should display after that, we would need the secondary option, say save_plus_action_done to leave the change page after saving and firing this action.
comment:9 by , 15 years ago
| Owner: | removed |
|---|---|
| Status: | assigned → new |
comment:10 by , 15 years ago
| Severity: | → Normal |
|---|---|
| Type: | → New feature |
comment:11 by , 14 years ago
| UI/UX: | set |
|---|
comment:16 by , 13 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
submitted pull request: https://github.com/django/django/pull/928
by , 13 years ago
| Attachment: | Admin Change Action Screenshot.png added |
|---|
Admin change action screenshot
comment:17 by , 13 years ago
| Cc: | added |
|---|
comment:18 by , 13 years ago
| Cc: | added |
|---|
@jgmize I can't comment about the design but I'd like to propose some changes: It would be nice if one where able to reuse the existing actions, this would mean supporting short_description and short_description_plural and using the correct version depending on the page (+some backwards shim). Also it would be interesting to see how your current stuff looks with save_on_top = True
comment:19 by , 12 years ago
| Patch needs improvement: | set |
|---|
comment:20 by , 5 years ago
| Has patch: | set |
|---|
A very old patch, but a start nonetheless in f62d6e44dda5f457d8108fbae005e026b82e138e in the PR linked above.
comment:21 by , 3 years ago
| Owner: | removed |
|---|---|
| Status: | assigned → new |
comment:22 by , 3 years ago
| Has patch: | unset |
|---|---|
| Owner: | set to |
| Patch needs improvement: | unset |
| Status: | new → assigned |
comment:23 by , 3 years ago
| Has patch: | set |
|---|
comment:25 by , 3 years ago
| Patch needs improvement: | set |
|---|
Going to change actions buttons -> dropdown with actions (same as list)
comment:26 by , 3 years ago
I'm leaving a message here to let you know that I'm still active and contributing but I don't have enough time to dedicate to this big ticket yet.
If someone has the time to work in it feel free to claim it! If not -> I'll be working on it later for sure, but I don't know exactly when.
Thank you!
comment:27 by , 2 years ago
Update: I've started to working again! Pull request in draft, with test passing, but there is documentation and other changes to do!
comment:28 by , 2 years ago
| Cc: | removed |
|---|
comment:29 by , 2 years ago
| Patch needs improvement: | unset |
|---|---|
| UI/UX: | unset |
comment:30 by , 2 years ago
| Patch needs improvement: | set |
|---|---|
| UI/UX: | set |
comment:31 by , 2 years ago
| Patch needs improvement: | unset |
|---|---|
| UI/UX: | unset |
comment:34 by , 19 months ago
| Needs documentation: | set |
|---|---|
| Patch needs improvement: | set |
comment:35 by , 16 months ago
| Needs documentation: | unset |
|---|---|
| Patch needs improvement: | unset |
comment:36 by , 15 months ago
| Patch needs improvement: | set |
|---|
comment:37 by , 9 months ago
| Cc: | added |
|---|
comment:40 by , 4 months ago
| Patch needs improvement: | set |
|---|
comment:41 by , 3 months ago
| Patch needs improvement: | unset |
|---|
I've applied the changes + new tests. Not sure if I should check Needs documentation as I need help!
comment:42 by , 3 months ago
Not sure if it would be useful but I've just found this repo: https://github.com/crccheck/django-object-actions
Seems famous and very used! In case we need some ideas/inspirations*
comment:43 by , 3 months ago
| Needs documentation: | set |
|---|
comment:44 by , 4 weeks ago
| Needs documentation: | unset |
|---|
Interesting idea!
One question though: The current admin actions usually return the user to the object list, what would be the behavior after running the action from the object detail page?