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

Method __str__

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

Source from the content-addressed store, hash-verified

9 name = models.CharField( max_length=200, help_text='Enter a book genre (e.g. Science Fiction)')
10
11 def __str__(self):
12 return self.name
13
14
15class Book(models.Model):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected