Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

objects.search error #5

Open
kns5675 opened this issue Oct 10, 2017 · 1 comment
Open

objects.search error #5

kns5675 opened this issue Oct 10, 2017 · 1 comment

Comments

@kns5675
Copy link

kns5675 commented Oct 10, 2017

posts.objects.search('test',('gtitle','gdesc')).order_by('-id')

error
TypeError at /req_proc/reqdata
search() takes exactly 2 arguments (3 given)

Request Method: GET
1.10.7
TypeError
search() takes exactly 2 arguments (3 given)
./ndaps/views/req_proc.py in reqdata, line 59
/usr/bin/uwsgi-core
2.7.12
['.', '', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client']
Tue, 10 Oct 2017 15:14:53 +0900

posts.objects.search('test')

error
TypeError at /req_proc/reqdata
get_field() got an unexpected keyword argument 'many_to_many'

Request Method: GET
1.10.7
TypeError
get_field() got an unexpected keyword argument 'many_to_many'
./ndaps/fulltext.py in search, line 73
/usr/bin/uwsgi-core
2.7.12
['.', '', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client']
Tue, 10 Oct 2017 15:20:50 +0900
@Sebadst
Copy link

Sebadst commented Jan 7, 2018

Hello,

you can just remove the many_to_many parameter from the meta.get_field() call in the fulltext.py module

xurxodiz added a commit to xurxodiz/django-fulltext-search that referenced this issue Aug 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants