Re: template orderby help

2008-01-29 Thread Rajesh Dhawan


>
> The ={{ request.GET.listing }} is the part im having trouble
> with.
>
> In the url the following 
> appearshttp://testsite.com/?orderby=id=test=_filter=
> which does not work

It's not clear what does not work. Do you get an error? What does the
view that receives that URL do with the request parameters you are
passing? Perhaps even include relevant code snippets from that view.

>
> But if i edit the url to this then it 
> works?http://testsite.com/?orderby=id=test

Since the only difference between this working URL and the non-working
one above is that the former has a couple of empty parameters, perhaps
your view needs to be changed so it treats empty parameters as if they
were never supplied?

-Rajesh D
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



template orderby help

2008-01-28 Thread leahy_rich

Hi Guys,

Im trying to do an orderby on my template its not working correctly
below is the template code. Im posting the listing
to the enquiry form and it is getting the listing correctly no keyword
or date filter is given so they remain blank.

ID

The ={{ request.GET.listing }} is the part im having trouble
with.

In the url the following appears 
http://testsite.com/?orderby=id=test=_filter=
which does not work

But if i edit the url to this then it works? 
http://testsite.com/?orderby=id=test

Any help will be greatly appreciated.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---