+ 1
Django-CMS append Label to searchfield
I want to append a label in the admin-template for MyModel search-field, so that the users know, that they can search by title. In my admin.py: class MyModelAdmin(admin.ModelAdmin): search_fields = ['title'] admin.site.register(MyModel, MyModelAdmin)
4 Respuestas
+ 1
I am not sure, but why you let ordinary users to enter admin panel???
if you want to make a search bar by title then why don't you just put search bar in website header?
0
I'd like to use lookup the entries in my table in my admin panel. Staff-users with permission can access this model/table from within the admin panel, so it would be nice to add a label for the search bar, but I don't know how.
It's also not for an actual project, but just for me to practice :)
0
Do you want to do something like this??
https://realpython.com/customize-django-admin-JUMP_LINK__&&__python__&&__JUMP_LINK/#adding-search-to-the-list-screen
0
Fu Foy have you got any solution??