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

Search Fields' #4

Open
growlf opened this issue Aug 16, 2013 · 1 comment
Open

Search Fields' #4

growlf opened this issue Aug 16, 2013 · 1 comment

Comments

@growlf
Copy link

growlf commented Aug 16, 2013

Getting the following error in the admin pages for both store locations and location types:

'ModelAdmin' object has no attribute 'search_fields'

With a Python 2.7.4 environment containing:

  • distribute==0.6.45
  • Django==1.4.5
  • django-cms==2.4.2
  • django-cms-storelocator==1.10.0
  • django-mptt==0.5.2
  • django-polymorphic==0.5
  • django-reversion==1.7.1
  • jsonfield==0.9.17
  • lxml==3.2.1
  • MySQL-python==1.2.3
  • simplejson==3.3.0
  • South==0.8.1

Possibly just adding:

search_fields = ['name',]

to the LocationAdmin admin will resolve this and maybe add some useful functionality?

@ygneo
Copy link
Collaborator

ygneo commented Aug 19, 2013

It looks weird, because AFAIK search_fields are avaliable but not mandatory in django 1.4

I will take look as soon as I can.

Thanks for reporting.

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