def initial(self, request, *args, **kwargs):
super(NodeDeviceList, self).initial(request, *args, **kwargs)<EOL>try:<EOL><INDENT>self.node = Node.objects.published().accessible_to(request.user).get(slug=self.kwargs.get('<STR_LIT>', None))<EOL><DEDENT>except Node.DoesNotExist:<EOL><INDENT>raise Http404(_('<STR_LIT>'))<EOL><DEDENT>self.check_object_permissions(request, self.node)<EOL>self.queryset = Device.objects.filter(node_id=self.node.id).accessible_to(self.request.user).select_related('<STR_LIT>')<EOL>
Custom initial method:
    * ensure node exists and store it in an instance attribute
    * change queryset to return only devices of current node