> def markable(checkins, project_category): > projects = project_category.projects.all() > res = [] > for day in checkins.group_dates(): > for ci in day: # for every checkin that day > if ci.project in projects: # <-- HERE > res.append(day.date) > break > return res
Just a guess. Try this: projects = list(project_category.projects.all()) or this: projects = project_category.projects.all()[:] Please report if this fetches all at once. Thomas Güttler --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

