On Fri, Jan 2, 2009 at 11:57 PM, Mathieu Steele wrote:
> Here is an example of the data model for the type of filter I would
> like to do:
>
> class Student
> name
>
> class Absence
> foreign key Student
> date
>
> Is there a way to filter Students with no absences?
>
> somethin
Try something like:
students = Student.objects.all()
absences = Absences.objects.all()
for absence in absences:
students.remove(absence.fk)
Maybe I'm wrong somewhere in the syntax, but the idea should be clear.
Regards, Alex A.
On Jan 2, 6:57 pm, Mathieu Steele wrote:
> Here is an example
2 matches
Mail list logo