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

Method display_genre

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

Source from the content-addressed store, hash-verified

32 return reverse("book_detail", args=[str(self.id)])
33
34 def display_genre(self):
35 return ', '.join(genre.name for genre in self.genre.all()[:3])
36
37 display_genre.short_description = 'Genre'
38

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected