openstax / openstax-cms

The OpenStax CMS, built using Wagtail on top of Django.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing comma in `search_fields` breaks /admin search

code-review-doctor opened this issue · comments

search_fields should be a list or tuple according to django docs but it's a str:

search_fields = ('title')

Notice the lack of a comma, so this gets evaluated to a str. A one item tuple must end in a comma so Python knows it's a tuple.

I can make a PR to fix this for you?