#36990: Referrer header required for django.contrib.gis.forms.widgets.OSMWidget
------------------------+--------------------------------------
     Reporter:  diestl  |                     Type:  Bug
       Status:  new     |                Component:  GIS
      Version:  6.0     |                 Severity:  Normal
     Keywords:          |             Triage Stage:  Unreviewed
    Has patch:  0       |      Needs documentation:  0
  Needs tests:  0       |  Patch needs improvement:  0
Easy pickings:  0       |                    UI/UX:  0
------------------------+--------------------------------------
 The OSMWidget does not set the referrer header (or does not configure open
 layers to set the referrer header) when making tile requests to the OSM
 tile server.  As per the OSM tile usage policy
 (https://operations.osmfoundation.org/policies/tiles/), these requests are
 being blocked.

 The OSMWidget is the default widget used in the django admin interface
 when using the `django.contrib.gis.admin.options.GISModelAdmin` admin base
 class for geometry fields such as
 `django.contrib.gis.db.models.PolygonField`.

 To reproduce this, you need a very simple model:

 {{{#!python
 from django.contrib.gis.db import models


 class TmpModel(models.Model):
     geometry = models.PolygonField(geography=True)
 }}}

 and admin:

 {{{#!python
 from .models import TmpModel
 from django.contrib.gis import admin


 @admin.register(TmpModel)
 class DatasetAdmin(admin.GISModelAdmin):
     pass
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36990>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019cfbcafdae-ce8bad6e-1ee2-4600-b476-97a2114e3a81-000000%40eu-central-1.amazonses.com.

Reply via email to