added missing/incomplete permissions to views
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
from django.shortcuts import render
|
||||
from django.views.generic import FormView, ListView
|
||||
from django.views.generic.base import TemplateView
|
||||
@@ -77,10 +78,9 @@ from containers.models import Container
|
||||
# return render(self.request, self.template_name, context)
|
||||
|
||||
|
||||
class ContainerDetails(ListView):
|
||||
class ContainerDetails(LoginRequiredMixin, ListView):
|
||||
template_name = 'common/container-details.html'
|
||||
model = Container
|
||||
# base_template = 'employee-base.html'
|
||||
context_object_name = 'objects'
|
||||
paginate_by = 20
|
||||
|
||||
|
||||
Reference in New Issue
Block a user