Make API endpoints clickable.

This commit is contained in:
Roberto Rosario
2015-08-06 14:45:27 -04:00
parent 2f030ab162
commit 24c63c4f38
2 changed files with 17 additions and 5 deletions

View File

@@ -41,9 +41,8 @@ class APIEndPoint(object):
self.__class__._registry[app.name] = self
@property
def url(self):
return reverse('rest_api:api-version-1-app', args=[self.app.name])
def get_absolute_url(self):
return reverse('rest_api:api-version-1-app', args=(self.app.name,))
@property
def app_name(self):