Instantly share code, notes, and snippets.

@cnk /
Created Jan 26, 2016

What would you like to do?
seen = StudentMaterialIndividualization.objects.filter(student=student_id,
material__knowledge_goal=knowledge_goal) \
for item in seen:
material = MaterialVersion.objects.filter(material_key=item.material_key, version=item.version)
# I am trying to end up with a list of materials so would like to query MaterialVersion but based on restrictions from StudentMaterialIndividualization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment