tomik-z-cech / PP5-Ohm-Azing-Components

View massive selection of electronic components at our online store. Find high-quality resistors, capacitors, tools, kits and more. Shop now for all your electronic needs !

Home Page:https://ohmazing-components-1a5a0fcb9e95.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

USER STORY : Add to Wishlist

tomik-z-cech opened this issue · comments

As a Site User, I need to be able to add items to my Wishlist in order to see keep the items I am interested in separately.

Acceptance Criteria :

Logged in User :

When I click "Add to Wishlist" toggle then the item toggles in Wishlist.

Not Logged in User :

Doesn't have that option.

Tasks :

  • Provide user with "Add to Wishlist" / "Remove from Wishlist" toggle button
  • Create view in views.py
  • Adjust item_detail.html template
  • Ensure the view communicates with context_list.py nested in wishlist app
  • Add logic to toggle item in Wishlist
  • Provide user with message that item was added / removed to / from the Wishlist
  • Protect the view to only logged in users
  • Test functionality as Logged in User
  • Test functionality as Not Logged in User

Epic :
EPIC 7

This was done in commit 618624a.