It's a very good opinion. I don't want any actions from parent model
admin class too.
Maybe it is worth opening a dedicated ticket?

On 5 апр, 05:56, Alex Gaynor <alex.gay...@gmail.com> wrote:
> On Sat, Apr 4, 2009 at 7:10 PM, kmike <kmik...@googlemail.com> wrote:
>
> > Totally agree, bulk delete shouldn't be enabled by default.
>
> > One more issue with that: it is nice to be able to define actions
> > order in drop-down list. It can be achieved with very simple patch,
> > seehttp://code.djangoproject.com/ticket/10734. But if we have delete
> > action (or any other action) enabled by default, this patch will
> > always put it at top and we will have to overload "get_actions" method
> > again to fix it.
>
> It seems to me that the default behavior of including items from every
> parent class is causing more harm than good.  I'm very tempted to say we
> might be better off just requiring users to either relist every item or do:
>
> class MyModelAdmin(ModelAdmin):
>     actions = ModelAdmin.actions + ['my_action']
>
> Alex
>
> --
> "I disapprove of what you say, but I will defend to the death your right to
> say it." --Voltaire
> "The people's good is the highest law."--Cicero
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to