you could add a js to the model admin class of the model. and then using ja to change the color of the field text.
class FooAdmin(admin.ModelAdmin):
# regular stuff
class Media:
js = (
'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js', # jquery
'js/myscript.js', # project static folder
'app/js/myscript.js', # app static folder
)
but remind add jQuery is not a good work. use pure js instead.
inside the js file you can select the element and change its css.
var aTags = document.getElementsByTagName("a");
var searchText = "SearchingText";
var found;
for (var i = 0; i < aTags.length; i++) {
if (aTags[i].textContent == searchText) {
found = aTags[i];
break;
}
}
// Use found
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…