CodeForTheCaribbean / HarvestAPI

Agricultural API
MIT License
8 stars 4 forks source link

Search on 'farms' returns an error #10

Closed badbruce07 closed 10 years ago

varunity commented 10 years ago

Thanks Bruce.

With these issues it's best to be as descriptive as possible and also try to match each github issue to a discrete bug. So if you were running a call to the API, please give the details.

eg. http://harvestdata.herokuapp.com/farms/?search=Manchester returns the following error:

TypeError at /farms/ Related Field has invalid lookup: icontains Request Method: GET Request URL: http://harvestdata.herokuapp.com/farms/?search=Manchester Django Version: 1.5.5 Exception Type: TypeError Exception Value:
Related Field has invalid lookup: icontains Exception Location: /app/.heroku/python/lib/python2.7/site-packages/django/db/models/fields/related.py in get_prep_lookup, line 148 Python Executable: /app/.heroku/python/bin/python Python Version: 2.7.4