Suggestions wanted for keeping place in admin

26 views
Skip to first unread message

pbx

unread,
May 4, 2006, 9:04:48 AM5/4/06
to Django users
I have a request from one of my admin users which seems reasonable, but
I don't know how to satisfy it.

She would like to have the admin "remember its place" when she edits
individual records. That is, if she filters by X and Y criteria, then
goes to the second page of results, then edits a single record there,
she would like to *return to that same page in the same set of selected
records* rather than being dumped back to the default view.

A reasonable request from her perspective -- for example, her Filemaker
database (which this system is replacing) does this.

Are there any fixes available for this that I've missed?

thanks

pb

--
http://e-scribe.com/news/

Clint Ecker

unread,
May 4, 2006, 9:11:47 AM5/4/06
to django...@googlegroups.com
On 5/4/06, pbx <paul....@gmail.com> wrote:
She would like to have the admin "remember its place" when she edits
individual records. That is, if she filters by X and Y criteria, then
goes to the second page of results, then edits a single record there,
she would like to *return to that same page in the same set of selected
records* rather than being dumped back to the default view.

Not 100% sure how you'd so about implementing this (i.e. hacking the admin app), but you could store the last filter/sort operation/configuration in a cookie via Javascript or session variable via Django and then, before setting the sorting orders in the view, rearrange them based on the information in the cookie/session.

--
Clint Ecker
clint...@gmail.com
http://phaedo.cx

Adrian Holovaty

unread,
May 4, 2006, 12:06:18 PM5/4/06
to django...@googlegroups.com
On 5/4/06, pbx <paul....@gmail.com> wrote:
> She would like to have the admin "remember its place" when she edits
> individual records. That is, if she filters by X and Y criteria, then
> goes to the second page of results, then edits a single record there,
> she would like to *return to that same page in the same set of selected
> records* rather than being dumped back to the default view.
>
> A reasonable request from her perspective -- for example, her Filemaker
> database (which this system is replacing) does this.
>
> Are there any fixes available for this that I've missed?

I haven't seen any patches that add this functionality. Here are a
couple of stop-gap solutions:

* She could bookmark the filtered change-list page and return to it
after editing the object.

* From the filtered change-list page, she could open the
object-editing page in a new browser tab/window.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

pbx

unread,
May 4, 2006, 12:20:31 PM5/4/06
to Django users

> I haven't seen any patches that add this functionality. Here are a
> couple of stop-gap solutions:
> * She could bookmark the filtered change-list page and return to it
> after editing the object.
>
> * From the filtered change-list page, she could open the
> object-editing page in a new browser tab/window.
>
> Adrian

OK, thanks. I think I'll suggest the new-tab approach (after I teach
her about tabs!)

pb

Reply all
Reply to author
Forward
0 new messages