Re: Admin Site Searching

2008-03-04 Thread [EMAIL PROTECTED]

On Mar 3, 1:41 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sun, 2008-03-02 at 10:03 -0800, Lee Connell wrote:
> > I have configured my django admin site to allow searching.  My
> > question is when a user logs in and chooses the table they wish to
> > make changes to, it automatically queries ALL data and then gives the
> > ability to search.  Is there an option to default to NOT grabbing ALL
> > data and allowing the user to enter search criteria?  This would save
> > load time on larger databases.
>
> No, there is not.

If you took the plunge and switched to newforms-admin then you can
override the changelist_view method in your ModelAdmin class. You'll
need to replicate some of the behaviour of ChangeList from
django.contrib.admin.main. Basically you'll want to check for search
terms and hand off to the super method if any exist. If not then
create a blank ChangeList and render as usual.

Regards,

Felix
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Admin Site Searching

2008-03-03 Thread Malcolm Tredinnick


On Sun, 2008-03-02 at 10:03 -0800, Lee Connell wrote:
> I have configured my django admin site to allow searching.  My
> question is when a user logs in and chooses the table they wish to
> make changes to, it automatically queries ALL data and then gives the
> ability to search.  Is there an option to default to NOT grabbing ALL
> data and allowing the user to enter search criteria?  This would save
> load time on larger databases.

No, there is not.

Malcolm

-- 
If Barbie is so popular, why do you have to buy her friends? 
http://www.pointy-stick.com/blog/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Admin Site Searching

2008-03-03 Thread [EMAIL PROTECTED]

Hi Lee,

On Mar 3, 1:22 pm, Lee Connell <[EMAIL PROTECTED]> wrote:
> Anyone?

Are you using newforms-admin? I think that this would be possible
under that branch. I can't speak for trunk, however.

Regards,

Felix
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Admin Site Searching

2008-03-03 Thread Lee Connell

Anyone?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Admin Site Searching

2008-03-02 Thread Lee Connell

I have configured my django admin site to allow searching.  My
question is when a user logs in and chooses the table they wish to
make changes to, it automatically queries ALL data and then gives the
ability to search.  Is there an option to default to NOT grabbing ALL
data and allowing the user to enter search criteria?  This would save
load time on larger databases.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---