Skip to content

Clean up generic views by using as_view() directly as applicable #164

@kiancm

Description

@kiancm

Instead of :

class ThermoDetail(DetailView):
       ...

use

path("thermo/<int:pk>/", DetailView.as_view(model=Thermo, context_object_name="thermo"), name="thermo-detail")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions