title: Django: Queryset object has no attribute '_prefetch_related_lookups'
link: http://jj.isgeek.net/2013/04/django-queryset-object-has-no-attribute-_prefetch_related_lookups/
author: Jj
description: 
post_id: 904
date: 2013/04/14 04:16:32
created_gmt: 2013/04/14 09:16:32
comment_status: open
slug: django-queryset-object-has-no-attribute-_prefetch_related_lookups

After migrating an app from Django 1.3 to 1.4 and testing that all worked fine locally, I ran into this message while updating the server: 

    Queryset object has no attribute '_prefetch_related_lookups'

The problem is the Sessions, I had to delete them all for it to work. Addtionally I changed the settings SECRET_KEY so all sessions don't validate. 

[This is the related Django ticket](https://code.djangoproject.com/ticket/18674)