[Answer]-Class Based View with no slug – Use ID :FieldError

1👍

Pit was in the url’s
changed P<slug> to P<pk>

url(
    regex=r"transaction_detail/(?P<pk>[-_\w]+)/$",
    view=TransactionDetailView.as_view(),
    name="transaction_detail"
    ),

Leave a comment