Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Nov. 3, 2005 20:04:29

Mauro S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Admin filter and search parameters


Hi,
how can I know the parameters that the admin interface is using when I
apply a filter or I do a search? I want to use those parameters in a
custom method. Is it possible to do it? Thanks.

Offline

#2 Nov. 3, 2005 20:44:42

Adrian H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Admin filter and search parameters


On 11/3/05, Mauro Sánchez <> wrote:
> how can I know the parameters that the admin interface is using when I
> apply a filter or I do a search? I want to use those parameters in a
> custom method. Is it possible to do it? Thanks.

Take a look at the URL of an admin change-list page after you've
applied a filter or done a search. The query parameters are,
essentially, the same as keyword arguments that can be passed to
get_list().

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

Offline

#3 Nov. 3, 2005 21:23:44

Mauro S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Admin filter and search parameters


2005/11/3, Adrian Holovaty <>:
> Take a look at the URL of an admin change-list page after you've
> applied a filter or done a search. The query parameters are,
> essentially, the same as keyword arguments that can be passed to
> get_list().
>
Ok, I get that. But, can I load those applied parameters in my code or
in my models?

Offline

#4 Nov. 3, 2005 22:31:01

Adrian H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Admin filter and search parameters


On 11/3/05, Mauro Sánchez <> wrote:
> > Take a look at the URL of an admin change-list page after you've
> > applied a filter or done a search. The query parameters are,
> > essentially, the same as keyword arguments that can be passed to
> > get_list().
> >
> Ok, I get that. But, can I load those applied parameters in my code or
> in my models?

Yes, just use those keyword arguments to get_list() in your own code.
I'm not sure I understand what you mean...Hope this answers your
question.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

Offline

Board footer

Moderator control

Enjoy the 18th of November
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