fix broken query, at least w/ django 1.6
fix broken query, at least w/ django 1.6

Lsquared13/nbproject,karger/nbproject,dragon96/nbproject,kesiena115/nbproject,kesiena115/nbproject,nbproject/nbproject,karger/nbproject,dragon96/nbproject,kesiena115/nbproject,karger/nbproject,nbproject/nbproject,dragon96/nbproject,dragon96/nbproject,kesiena115/nbproject,dragon96/nbproject,Lsquared13/nbproject,karger/nbproject,Lsquared13/nbproject,nbproject/nbproject,karger/nbproject,kesiena115/nbproject,Lsquared13/nbproject,Lsquared13/nbproject,nbproject/nbproject,nbproject/nbproject