MCPcopy Create free account
hub / github.com/codemistic/Web-Development / __str__

Method __str__

locallibrary/catalog/models.py:58–59  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

56 ordering = ['due_back']
57
58 def __str__(self):
59 return f'{self.id} ({self.book.title})'
60
61
62class Author(models.Model):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected