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

2016-01-17 Thread superzhang16
I want to add placeholder to search bar .First,I override the template 
change_list.html and find the search bar ,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!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/90ee2d01-4482-4066-bedd-ff1bfce92e07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


django admin search bar add placeholder variable and how to call it in modelAdmin

2016-01-15 Thread superzhang16
I want to add placeholder to search bar .First,I override the template 
change_list.html and find the search bar ,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!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/95fe6ba5-4c6b-458f-9cb4-15aa5258dea6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.