Re: Trouble with Django Generic List view

2020-01-01 Thread Sam Hefer
Ah! Okay. Thank you! On Thursday, January 2, 2020 at 11:08:53 AM UTC+13, Jason wrote: > > when you do > > return jobs, print(jobs) > > > > you're returning a tuple from the method, which is not what is expected. > Remove the print statement from that line > > > On Wednesday, January 1, 2020 at

Re: Trouble with Django Generic List view

2020-01-01 Thread Jason
when you do return jobs, print(jobs) you're returning a tuple from the method, which is not what is expected. Remove the print statement from that line On Wednesday, January 1, 2020 at 5:02:13 PM UTC-5, Sam Hefer wrote: > > Hi, > > I'm having some issues with displaying a filtered list in

Trouble with Django Generic List view

2020-01-01 Thread Sam Hefer
Hi, I'm having some issues with displaying a filtered list in a template. My View: class MyJobs(ListView): model = Job template_name = 'jobs/my_job_list.html' context_object_name = 'jobs' def get_queryset(self, *args, **kwargs): jobs = Job.objects.filter(company_name__o