I'm trying to extract some data from my database in my Django app with the following line of code. Job is the name of my model and jobIDs[i] represents the id of the record being operated on.
timeToRun = Job.objects.filter(id=jobIDs[i]).values()['whenToRun'].split(' ')[0]
When I get to ['whenToRun'] I get a TypeError(). Am I misunderstanding how to access values in this kind of dict?
EDIT: To clarify, .values() return a ValuesQuerySet