MegaMark16 / django-cms-storelocator

A store locator extension for Django CMS
BSD 3-Clause "New" or "Revised" License
18 stars 10 forks source link

Search Fields' #4

Open growlf opened 10 years ago

growlf commented 10 years ago

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:

Possibly just adding:

search_fields = ['name',]

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

ygneo commented 10 years ago

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.