Commit ffd973f9 authored by Nicolas Joyard's avatar Nicolas Joyard

Fix recommendation search, closes #153

parent 2994fe34
......@@ -9,7 +9,8 @@ from .models import Recommendation
class RecommendationsAdmin(admin.ModelAdmin):
list_display = ('id', 'title', 'proposal', 'recommendation', 'weight')
search_fields = ('title', 'recommendation', 'proposal')
search_fields = ('title', 'description', 'proposal__title',
'proposal__dossier__title')
form = RecommendationForm
admin.site.register(Recommendation, RecommendationsAdmin)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment