Techiio-author
Started by Debarghya DasSep 15, 2021

Open
How to add placeholder text to search box in Django Admin?

0 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWES SHARE

I have a bunch of instances of ModelAdmin defined in admin.py file and many of them use the search_fields parameter. However, they all don't use the same variables to search by, and so I'm wondering what might be the most Pythonic/easiest way to add some placeholder text to the input to make it clear to the system admins what they're searching by.

I'm using Django 1.10.

0 Replies

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance