How to change display name of Model Instances in Django admin interface? To change the display name we will use def __str__() function in a model . str function in a django model returns a string that is exactly rendered as the display name of instances for that model.13 Şub 2020