Opened 7 years ago

Last modified 3 years ago

#12090 assigned New feature

Show admin actions on the edit pages too

Reported by: Florian Apolloner Owned by: jgmize
Component: contrib.admin Version: master
Severity: Normal Keywords:
Cc: Jannis Leidel, Carl Meyer, Danilo Bargen, jgmize, Florian Apolloner Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: yes

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)

Admin Change Action Screenshot.png (63.5 KB) - added by jgmize 4 years ago.
Admin change action screenshot

Download all attachments as: .zip

Change History (20)

comment:1 Changed 7 years ago by Jannis Leidel

Cc: Jannis Leidel added
Needs documentation: unset
Needs tests: unset
Patch needs improvement: 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?

comment:2 Changed 7 years ago by Carl Meyer

Cc: Carl Meyer added

comment:3 Changed 7 years ago by Jannis Leidel

Owner: changed from nobody to Jannis Leidel
Status: newassigned

comment:5 Changed 7 years ago by Russell Keith-Magee

Triage Stage: UnreviewedDesign decision needed

comment:6 Changed 7 years ago by Jannis Leidel

Triage Stage: Design decision neededAccepted

comment:7 Changed 7 years ago by scaphilo

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 Changed 6 years ago by hamlet

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 Changed 6 years ago by Jannis Leidel

Owner: Jannis Leidel deleted
Status: assignednew

comment:10 Changed 5 years ago by Julien Phalip

Severity: Normal
Type: New feature

comment:11 Changed 5 years ago by Julien Phalip

UI/UX: set

comment:12 Changed 5 years ago by Aymeric Augustin

UI/UX: unset

Change UI/UX from NULL to False.

comment:13 Changed 5 years ago by Aymeric Augustin

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:14 Changed 5 years ago by Aymeric Augustin

UI/UX: set

Revert accidental batch modification.

comment:15 Changed 4 years ago by Danilo Bargen

Cc: Danilo Bargen added

This would be a very nice change. There are some types of changes that shouldn't be done as a batch process, as they might depend on each other, so the order in which they're processed is critical.

Last edited 4 years ago by Danilo Bargen (previous) (diff)

comment:16 Changed 4 years ago by jgmize

Owner: set to jgmize
Status: newassigned

Changed 4 years ago by jgmize

Admin change action screenshot

comment:17 Changed 4 years ago by jgmize

Cc: jgmize added

comment:18 Changed 3 years ago by Florian Apolloner

Cc: Florian Apolloner 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 Changed 3 years ago by Tim Graham

Patch needs improvement: set
Note: See TracTickets for help on using tickets.
Back to Top