On Thu, Feb 5, 2009 at 7:20 AM, Muslu Yüksektepe <[email protected]>wrote:
> @Rama: > where can i add this code? > > and i wanna use like this. > > my items: > --------------------------------- > aa > aaa > aaaa > aaaaa > bb > bbb > bbbbb > ccc > cccccc > cc > -------------------------------------- > my list: > a b c d e f g h.... > > when i click "a" i wanna show only > > aa > aaa > aaaa > aaaaa > > this items > > even i can write manually cos i wanna use turkish character too > like ç ş ğ ü ı ö ç > but not important > > > > 2009/2/5 Masklinn <[email protected]> > > >> On 5 févr. 09, at 11:40, Rama Vadakattu <[email protected]> >> wrote: >> > k = [chr(i) for i in range(97,123)] >> > >> >> >> >> >> Why do you manually recreate something already provided to you in the >> 'string' module? >> >> > > > > Basically you're going to want a view that takes the letter as a parameter and then filters down the queryset based on the letter, take a look at the __startswith filter. -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

