Question : 'NoneType' object has no attribute 'attname'
Answered by : bilalahmeddev
def __init__(self): return self.title
instead of def __str__(self): return self.title
Source : https://stackoverflow.com/questions/46360477/attributeerror-nonetype-object-has-no-attribute-attname-django | Last Update : Mon, 27 Jun 22