ListView and Deleteview

2015-02-02 Thread elcaiaimar
Hello everybody, I'm working in a website using django. I would like that users could select and delete data introduced for them. I've found some information on the web and it seems that the ListView and DeleteView is what I need. However, when I try to do a ListView, it doesn&#x

Re: ListView and Deleteview

2015-02-02 Thread Giuseppe Saviano
> views.py: > > def PozoList(ListView): > model = Pozo > template_name = 'cuencas/edicioncuenca.html' > Is your view a function or a class? -- $ gpg --recv-key da5098a7 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fr

Re: ListView and Deleteview

2015-02-02 Thread elcaiaimar
> > I'm working in a website using django. I would like that users could > select and delete data introduced for them. I've found some information on > the web and it seems that the ListView and DeleteView is what I need. > However, when I try to do a ListView, it doesn

Re: ListView and Deleteview

2015-02-02 Thread Dan Gentry
This is a bit of a stumper! I don't see any big glaring issues. A couple of housekeeping things: Is there data in the table? Are you certain that you are using the correct template? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubsc

Re: ListView and Deleteview

2015-02-02 Thread Vijay Khemlani
Hmmm... Try and post your urls.py and views.py (the correct one) On Mon, Feb 2, 2015 at 5:20 PM, Dan Gentry wrote: > This is a bit of a stumper! > > I don't see any big glaring issues. A couple of housekeeping things: Is > there data in the table? Are you certain that you are using the correct

Re: ListView and Deleteview

2015-02-02 Thread James Schneider
You've defined your class-based view as a function: def PozoList(ListView): You should be defining it as a class: class PozoList(ListView): And you should be calling the to_view() method for the PozoList class from your urls.py. Please post your urls.py and any traceback and error messages you