I would like to change the default behavior of how the admin recent changes sidebar displays the name of \"objects\" added. Refer to the picture below:
By adding __str__() method to the model Patient this way:
__str__()
Patient
class Patient(models.Model): name=models.CharField(max_length=200) #......... def __str__(self): return self.name
will display name of patient instead object. For detail check here