

def is_hybrid(request):

    return {
        'is_hybrid': 'HTTP_MYUW_HYBRID' in request.META
    }



def is_hybrid(request):

    return {
        'is_hybrid': 'MyUW_Hybrid/1.0' in request.META['HTTP_USER_AGENT']
    }

Update context processer to check for custom hybrid user agent.
Update context processer to check for custom hybrid user agent.

  
  
  def is_hybrid(request):
  
      return {
-         'is_hybrid': 'HTTP_MYUW_HYBRID' in request.META
+         'is_hybrid': 'MyUW_Hybrid/1.0' in request.META['HTTP_USER_AGENT']
      }
  
Update context processer to check for custom hybrid user agent.
## Code Before:


def is_hybrid(request):

    return {
        'is_hybrid': 'HTTP_MYUW_HYBRID' in request.META
    }

## Instruction:
Update context processer to check for custom hybrid user agent.
## Code After:


def is_hybrid(request):

    return {
        'is_hybrid': 'MyUW_Hybrid/1.0' in request.META['HTTP_USER_AGENT']
    }
