Toggling of Favorites, and frontend state display complete

This commit is contained in:
Raelon Masters
2020-07-21 23:25:26 -04:00
parent 337600a74e
commit 5ebaa22ee4
5 changed files with 34 additions and 11 deletions

View File

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