Fixed an issue with jquery selecting wrong selector on favorite

This commit is contained in:
Raelon Masters
2020-07-22 12:43:07 -04:00
parent 5aeb7ff13c
commit d80ca8ee55
5 changed files with 42 additions and 15 deletions

View File

@@ -133,7 +133,7 @@ class Favorites(models.Model):
db_table = "favorites"
def __str__(self):
return self.book
return str(self.book)
book = models.ForeignKey(Books, on_delete=models.CASCADE)
user = models.ForeignKey(