Export to GitHub

django-sphinx - issue #43

AttributeError using multiple indexes


Posted on Jul 24, 2009 by Swift Horse

What steps will reproduce the problem? 1. say we have 2+ models with primary_key = id 2. q = djangosphinx.SphinxQuerySet('index1, index2...') 3. list(q.query('foo')) 4: AttributeError: '<model>' object has no attribute 'pks'

What version of the product are you using? r114

Please provide any additional information below. The problem is in manager.py (line587) :

objcache[ct][', '.join([unicode(p) for p in o.pks])] = o

My models don't have multiple pks.

I've attached the patch.

Anyway, great app!

Attachments

Comment #1

Posted on Sep 4, 2009 by Massive Panda

(No comment was entered for this change.)

Status: Fixed

Labels:
Type-Defect Priority-Medium