Instead of : ``` class ThermoDetail(DetailView): ... ``` use ``` path("thermo/<int:pk>/", DetailView.as_view(model=Thermo, context_object_name="thermo"), name="thermo-detail") ```