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

Method get_absolute_url

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

Source from the content-addressed store, hash-verified

29 return self.id
30
31 def get_absolute_url(self):
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])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected