how to use __str__ in django t code example Example: __str__ in django def __str__(self): return self.name