Update user detail link

This commit is contained in:
Jannis Portmann 2023-04-02 22:47:04 +02:00
parent 4ee52d2ba5
commit d796953e4d
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@
</div>
</a>
<div class="card-footer d-flex justify-content-between">
<a href="#">
<a href="{% url 'user_detail' offer.user.id %}">
<i class="fas fa-user mt-3"></i> {{ offer.user.username }}
</a>
<p class="zip">

View file

@ -13,7 +13,7 @@ urlpatterns = [
path("offer/<int:offer_id>/delete/", views.offer_delete, name="offer_delete"),
path("offer/<int:offer_id>/edit/", views.offer_edit, name="offer_edit"),
path("offer/<int:offer_id>/trade/", views.offer_trade, name="offer_trade"),
path("user/<int:user_id>", views.user_detail, name="user_detail"),
path("accounts/<int:user_id>", views.user_detail, name="user_detail"),
path('accounts/login/', auth_views.LoginView.as_view(template_name='registration/login.html')),
path('accounts/profile/', auth_views.LoginView.as_view(template_name='user/detail.html')),
path('accounts/', include('django.contrib.auth.urls')),