CuiBono / cuibono_webservice

webservice to receive fingerprint queries from mobile devices, query echonest server and return JSON
2 stars 1 forks source link

django-piston complaining about iterating over many-related fields? #5

Closed boblannon closed 12 years ago

boblannon commented 12 years ago

i commented out a couple of lines in /api/handlers.py because they're making piston complain. they're both lines that iterate over the tags and articles associated with an add. this seemed fine to me, but i guess it's too crude. something tells me we'll have to use piston's json emitter.

Piston/0.2.3rc1 (Django 1.3.1) crash report:

Method signature does not match.

Signature should be: the_hash

Exception was: 'ManyRelatedManager' object is not iterable