Closed
Bug 700714
Opened 13 years ago
Closed 11 years ago
Remove 'Delete selected profiles' action from the admin
Categories
(support.mozilla.org :: Users and Groups, task, P4)
support.mozilla.org
Users and Groups
Tracking
(Not tracked)
RESOLVED
FIXED
2013Q3
People
(Reporter: jsocol, Assigned: berkerpeksag)
Details
(Whiteboard: u=sumo-team c=admin p=0 s=2013.16 [mentor=r1cky])
Profile objects can't be deleted anyway. Remove the bulk "Delete selected profiles" action from the admin.
Reporter | ||
Comment 1•13 years ago
|
||
http://people.mozilla.org/~mverdi/screenshots/delete-20111108-120047.jpg < This is what I mean.
Reporter | ||
Updated•13 years ago
|
Target Milestone: 2011-11-15 → ---
Comment 2•11 years ago
|
||
hey can I do this ?
Comment 3•11 years ago
|
||
sure!
Updated•11 years ago
|
Assignee: james → michaljev
Status: NEW → ASSIGNED
Updated•11 years ago
|
Whiteboard: u=user c=admin p=0 s=2013.backlog [mentor=r1cky]
Updated•11 years ago
|
Whiteboard: u=user c=admin p=0 s=2013.backlog [mentor=r1cky] → u=sumo-team c=admin p=0 s=2013.backlog [mentor=r1cky]
Comment 4•11 years ago
|
||
It is little tricky I tried adding actions in admin class but it didnt help, adding admin.site.disable_action('delete_selected') removes it from everywhere and again using actions or admin.site.add_action doesnt help.
Comment 5•11 years ago
|
||
r1cky any ideas ? :(
Comment 6•11 years ago
|
||
(In reply to Michał Frontczak :fxa90id from comment #5) > r1cky any ideas ? :( Look here: https://docs.djangoproject.com/en/dev/ref/contrib/admin/actions/#conditionally-enabling-or-disabling-actions :)
Comment 7•11 years ago
|
||
tried this too :<
Comment 8•11 years ago
|
||
any ideas?
Comment 9•11 years ago
|
||
Hey Michal, did you make any progress on this? Berker beat you to a pull request: https://github.com/mozilla/kitsune/pull/1573
Updated•11 years ago
|
Flags: needinfo?(michaljev)
Updated•11 years ago
|
Assignee: michaljev → berker.peksag
Flags: needinfo?(michaljev)
Comment 10•11 years ago
|
||
Landed on master: https://github.com/mozilla/kitsune/commit/f9e226f496f4cf18bf857a891799538acd5bd601
Comment 11•11 years ago
|
||
Current sprint.
Priority: -- → P4
Whiteboard: u=sumo-team c=admin p=0 s=2013.backlog [mentor=r1cky] → u=sumo-team c=admin p=0 s=2013.16 [mentor=r1cky]
Target Milestone: --- → 2013Q3
Comment 12•11 years ago
|
||
Deployed to prod now. Thanks all!
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•