please help me !django admin search bar add placeholder variable and how to call it in modelAdmin! HELP!

90 views
Skip to first unread message

superz...@gmail.com

unread,
Jan 17, 2016, 10:17:54 PM1/17/16
to Django users
I want to add placeholder to search bar .First,I override the template change_list.html and find the search bar <input>,I know add attribute placeholder ,and I defined a variable placeholder={{'''search_tip'}}
to placeholder, as my app has three searchbar in different modelAdmin, I want to change the context of the placeholder by changing the variable..but I don't konw how to call the variable 'search_tip''  in the modelAdmin!
Reply all
Reply to author
Forward
0 new messages