Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » how to map admin actions with shortcut keys [RSS Feed]

#1 Jan. 9, 2011 19:40:54

rahul j.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

how to map admin actions with shortcut keys


How to map admin actions with shortcut keys ?

I have an action to perform on rows (objects) which changes the value of one
of the columns(fields) to "x" and some to "y" and some to "z".
I would like to save some time by not going through the normal route (after
selecting the rows, selecting from the drop down menu, the action to be
performed, then clicking go).

Is it possible to make it faster ?

One of ways i could think is through shortcut keys

Key 1 -> Perform admin action "x" on some rows

Key 2 -> Perform admin action "y" on some rows

key 3 -> Perform admin action "z" on some rows

Will appreciate if you can let me know how to approach this problem ?

Thanks.

Rahul

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Jan. 9, 2011 21:30:28

Mikhail K.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

how to map admin actions with shortcut keys


Hi Rahul,

This can be solved using custom javascript. Override ModelAdmin's
changelist template (http://docs.djangoproject.com/en/1.2/ref/contrib/admin/#overriding-admin-templates) in order to insert the necessary javascript code.

On 10 янв, 00:37, rahul jain <jainwolver...@gmail.com> wrote:
> How to map admin actions with shortcut keys ?
>
> I have an action to perform on rows (objects) which changes the value of one
> of the columns(fields) to "x" and some to "y" and some to "z".
> I would like to save some time by not going through the normal route (after
> selecting the rows, selecting from the drop down menu, the action to be
> performed, then clicking go).
>
> Is it possible to make it faster ?
>
> One of ways i could think is through shortcut keys
>
> Key 1 -> Perform admin action "x" on some rows
>
> Key 2 -> Perform admin action "y" on some rows
>
> key 3 -> Perform admin action "z" on some rows
>
> Will appreciate if you can let me know how to approach this problem ?
>
> Thanks.
>
> Rahul

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

  • Root
  • » Django
  • » how to map admin actions with shortcut keys [RSS Feed]

Board footer

Moderator control

Enjoy the 21st of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support