Commit 60e5e09d authored by Nics De Vega's avatar Nics De Vega

fixed oversight in bookshelf models and urls formatting

parent 1ceb8671
......@@ -14,7 +14,7 @@ class Author(models.Model):
def get_absolute_url(self):
return reverse("bookshelf:author-details",kwargs={'pk':self.pk})
return reverse("bookshelf:author_details",kwargs={'pk':self.pk})
class Book(models.Model):
......@@ -30,4 +30,4 @@ class Book(models.Model):
def get_absolute_url(self):
return reverse("bookshelf:book-details",kwargs={'pk':self.pk})
\ No newline at end of file
return reverse("bookshelf:book_details",kwargs={'pk':self.pk})
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment