RE: Doubt in urls.py filter

2013-02-09 Thread Thiago Carvalho D' Ávila
Thanks Babatunde, I was aware of your solution. I am just curious if it is possible to make it just in the urls.py. Anyone? Em 09/02/2013 13:20, "Babatunde Akinyanmi" escreveu: > >The problem I have is that I want to use a view (rather not modifing it) > to show all person

RE: Doubt in urls.py filter

2013-02-09 Thread Babatunde Akinyanmi
>The problem I have is that I want to use a view (rather not modifing it) to show all person in a group. And if it's that you don't want to touch your view code, I'm not sure you'll be able to do what you seek but I'll love also to know if it's achievablebut I'm a noob anyway. Sent from

RE: Doubt in urls.py filter

2013-02-09 Thread Babatunde Akinyanmi
Hi Thiago, I have believe MyListView is a subclass of ListView. The cleaner way to do what you are trying to achieve will be to override the get_queryset() method. The code you gave is not working because pk will not be available when python starts to evaluate your urls.py file. pk becomes