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