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

Method get_absolute_url

locallibrary/catalog/models.py:71–73  ·  view source on GitHub ↗

Returns the URL to access a particular author instance.

(self)

Source from the content-addressed store, hash-verified

69 ordering = ['last_name', 'first_name']
70
71 def get_absolute_url(self):
72 """Returns the URL to access a particular author instance."""
73 return reverse('author-detail', args=[str(self.id)])
74
75 def __str__(self):
76 return f'{self.first_name} {self.last_name}'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected