1
You need two underscores for the str method, not one:
# No
def _str_(self):
pass
# Yes
def __str__(self):
pass
Source:stackexchange.com
1
You need two underscores for the str method, not one:
# No
def _str_(self):
pass
# Yes
def __str__(self):
pass