3 level nested prefetch is not working on Django 1.8.x

32 views
Skip to first unread message

Dheerendra Rathor

unread,
Feb 26, 2016, 7:25:28 AM2/26/16
to Django users
Three level nested prefetch with custom queryset throws an Attribute Error. It works perfectly fine on Django 1.9 but I was unable to find release notes or bug fix notes of the same. 

To reproduce: 
1. Install Django 1.8.6+

It throws: AttributeError: Cannot find 'videos' on QuizMarker object, 'videos__markers__quiz__quiz_histories' is an invalid parameter to prefetch_related()
however, running the same with Django 1.9 works fine as expected. 

Reply all
Reply to author
Forward
0 new messages