Commit 7df51114 authored by Luko van der Maas's avatar Luko van der Maas

Merge branch 'fix-aliases-admin' into 'master'

Now really fix mailinglists search

Closes #876

See merge request !1403
parents 9220c98a b93190e7
......@@ -24,7 +24,7 @@ class MailingListAdmin(admin.ModelAdmin):
filter_horizontal = ('members',)
inlines = (VerbatimAddressInline, ListAliasInline)
list_display = ('name', 'alias_names', 'moderated', 'description')
search_fields = ['name', 'aliasses__alias']
search_fields = ['name', 'aliases__alias']
def alias_names(self, obj):
"""Return list of aliases of obj."""
......
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