prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  PWA does not respect orientation lock on Android
  
  
  </issue>
  <code>
  [start of ephios/core/views/pwa.py]
  1 import functools
  2 
  3 from django.conf import settings
  4 from django.contrib.staticfiles import finders
  5 from django.http import HttpResponse, JsonResponse
  6 from django.shortcuts import render
  7 from django.utils.translation import get_language
  8 
  9 
  10 def manifest(request):
  11     manifest_json = {
  12         "name": "ephios",
  13         "short_name": "ephios",
  14         "description": "ephios manages events for medical services",
  15         "start_url": "/",
  16         "display": "standalone",
  17         "scope": "/",
  18         "orientation": "any",
  19         "background_color": "#fff",
  20         "theme_color": "#000",
  21         "status_bar": "default",
  22         "dir": "auto",
  23         "icons": settings.PWA_APP_ICONS,
  24         "lang": get_language(),
  25     }
  26     response = JsonResponse(manifest_json)
  27     response["Service-Worker-Allowed"] = "/"
  28     return response
  29 
  30 
  31 @functools.lru_cache
  32 def serviceworker_js():
  33     with open(finders.find("ephios/js/serviceworker.js"), "rb") as sw_js:
  34         return sw_js.read()
  35 
  36 
  37 def serviceworker(request):
  38     return HttpResponse(
  39         serviceworker_js(),
  40         content_type="application/javascript",
  41     )
  42 
  43 
  44 def offline(request):
  45     return render(request, "offline.html")
  46
  [end of ephios/core/views/pwa.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/ephios/core/views/pwa.py b/ephios/core/views/pwa.py
  --- a/ephios/core/views/pwa.py
  +++ b/ephios/core/views/pwa.py
  @@ -15,7 +15,6 @@
           "start_url": "/",
           "display": "standalone",
           "scope": "/",
  -        "orientation": "any",
           "background_color": "#fff",
           "theme_color": "#000",
           "status_bar": "default",
  
verification_info: {"golden_diff": "diff --git a/ephios/core/views/pwa.py b/ephios/core/views/pwa.py\n--- a/ephios/core/views/pwa.py\n+++ b/ephios/core/views/pwa.py\n@@ -15,7 +15,6 @@\n         \"start_url\": \"/\",\n         \"display\": \"standalone\",\n         \"scope\": \"/\",\n-        \"orientation\": \"any\",\n         \"background_color\": \"#fff\",\n         \"theme_color\": \"#000\",\n         \"status_bar\": \"default\",\n", "issue": "PWA does not respect orientation lock on Android\n\n", "before_files": [{"content": "import functools\n\nfrom django.conf import settings\nfrom django.contrib.staticfiles import finders\nfrom django.http import HttpResponse, JsonResponse\nfrom django.shortcuts import render\nfrom django.utils.translation import get_language\n\n\ndef manifest(request):\n    manifest_json = {\n        \"name\": \"ephios\",\n        \"short_name\": \"ephios\",\n        \"description\": \"ephios manages events for medical services\",\n        \"start_url\": \"/\",\n        \"display\": \"standalone\",\n        \"scope\": \"/\",\n        \"orientation\": \"any\",\n        \"background_color\": \"#fff\",\n        \"theme_color\": \"#000\",\n        \"status_bar\": \"default\",\n        \"dir\": \"auto\",\n        \"icons\": settings.PWA_APP_ICONS,\n        \"lang\": get_language(),\n    }\n    response = JsonResponse(manifest_json)\n    response[\"Service-Worker-Allowed\"] = \"/\"\n    return response\n\n\n@functools.lru_cache\ndef serviceworker_js():\n    with open(finders.find(\"ephios/js/serviceworker.js\"), \"rb\") as sw_js:\n        return sw_js.read()\n\n\ndef serviceworker(request):\n    return HttpResponse(\n        serviceworker_js(),\n        content_type=\"application/javascript\",\n    )\n\n\ndef offline(request):\n    return render(request, \"offline.html\")\n", "path": "ephios/core/views/pwa.py"}]}