-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
Description
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.