You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 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.
The text was updated successfully, but these errors were encountered: