Commit a4bdbe0b authored by Martina Reyes's avatar Martina Reyes

Replaced favorites with profile.

Favorites will go in the profile view.
Modified urls, views, base html files accordingly.
Renamed favorites to profile.
parent b2c474b2
......@@ -36,8 +36,7 @@
<li><a href="/">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Help</a></li>
<li><a href="/myFavoriteAuctions">My Favorite Auctions</a></li>
<li><a href="#">My Profile</a></li>
<li><a href="/profile">My Profile</a></li>
<li><a href="/store">My Store</a></li>
</ul>
</nav>
......
......@@ -9,6 +9,8 @@
{% block content %}
<h1>This is user's profile</h1>
<!--Change auctions_now, auction to like favorites, favorite-->
<div class="event-container">
{% if auctions_now %}
......
......@@ -12,5 +12,5 @@ urlpatterns = [
path('additem', addItem, name='additem'),
path('additem/<int:pk>', addItem, name='additemid'),
path('startauction', startAuction, name='startauction'),
path('myFavoriteAuctions', myFavoriteAuctions, name='myFavoriteAuctions')
path('profile', profile, name='profile')
]
\ No newline at end of file
......@@ -137,7 +137,7 @@ def startAuction(request):
return render(request, "boodlesite/templates/startauction.html", context)
def myFavoriteAuctions(request):
def profile(request):
# filter the favorites i think from auction tapos
# we need to add things like .add() and .remove()
return render(request, "boodlesite/templates/favorites.html")
return render(request, "boodlesite/templates/profile.html")
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