how to get different name using __ str__ method in django code example Example: __str__ in django def __str__(self): return self.name