Commit 8cab6ed5 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch '112-multilingualfield-lijkt-zoek-functie-in-admin-te-breken' into 'master'

Translate searchable fields

Closes #112

See merge request !117
parents 135f5158 03d37692
......@@ -136,6 +136,8 @@ class TranslatedModelAdmin(admin.ModelAdmin):
# In fields, we replace a translated field by all resulting fields.
type(self).fields = trans_fields(type(self).fields)
type(self).exclude = trans_fields(type(self).exclude)
type(self).search_fields = trans_fields(type(self).search_fields)
if type(self).fieldsets is not None:
for fieldset in type(self).fieldsets:
fieldset[1]['fields'] = trans_fields(fieldset[1]['fields'])
......
Supports Markdown
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