Use service slug in routing
This commit is contained in:
parent
7411288019
commit
51dcc46f62
2 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@
|
|||
</div>
|
||||
<div class="card-footer d-flex justify-content-between">
|
||||
<span></span>
|
||||
<a href="{{ service.pk }}/" class="btn btn-light-primary">{% translate "Read More" %}</a>
|
||||
<a href="{{ service.slug }}/" class="btn btn-light-primary">{% translate "Read More" %}</a>
|
||||
</div>
|
||||
</div>
|
||||
{% empty %}
|
||||
|
|
|
@ -26,7 +26,7 @@ urlpatterns = [
|
|||
name="organization.services",
|
||||
),
|
||||
path(
|
||||
"services/<int:pk>/",
|
||||
"services/<slug:slug>/",
|
||||
views.ServiceDetailView.as_view(),
|
||||
name="organization.services",
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue