Skip to content

Migrate silo views to generic view #535

@ybekdemir

Description

@ybekdemir

Current behavior

Currently we are using separated view functions for silo detail, silo edit, list silo and delete silo pages and we have similar permissions check for each other. When we need to update permissions, we have to update each other. Also, it's not readable.

Current view functions.
def list_silos(request):
def edit_silo(request, id):
def silo_detail(request, silo_id):
def list_silos(request):

Expected behavior

We should use generic views for list, detail and silo edit pages. Therefore, we can use same permission class for all of them.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions