imsanjoykb / Data-Science-Regular-Bootcamp

Regular practice on Data Science, Machien Learning, Deep Learning, Solving ML Project problem, Analytical Issue. Regular boost up my knowledge. The goal is to help learner with learning resource on Data Science filed.
https://imsanjoykb.github.io/
MIT License
106 stars 40 forks source link

Attribute Error: 'NoneType' object has no attribute 'id' #145

Open imsanjoykb opened 2 years ago

imsanjoykb commented 2 years ago

def str(self): """ String for representing the Model object """ if self.book: return '%s (%s)' %(self.id, self.book.title)) else: return '%s (%s)' %(self.id, self.imprint)) # add some other value that you want here